0

Why I can't put pictures in html code ?

5th Jul 2022, 6:47 AM
Ishan Ghimire
Ishan Ghimire - avatar
7 Respostas
5th Jul 2022, 8:30 AM
Chris Coder
Chris Coder - avatar
+ 1
Ishan Ghimire There is 'src' not 'scr'
6th Jul 2022, 5:44 AM
A͢J
A͢J - avatar
0
Yes
5th Jul 2022, 7:00 AM
Ishan Ghimire
Ishan Ghimire - avatar
0
A bitmap image (a collection of colored pixels, such as a jpg or png file) is typically stored as a separate file. If the file is located in your own device, and the html file is on the server, then the server cannot access the image. The image must be at the same location as the html file, or it can be anywhere on the internet and then you need to reference the public URL. Another way is to embed the graphics in the html code. This is most trivial with SVG because that is also very similar to html code. You can also embed the binary data of the image directly in the IMG tag.
5th Jul 2022, 8:34 AM
Tibor Santa
Tibor Santa - avatar
0
<!DOCTYPE html> <html> <head> <title>my first code</title> </head> <body> <img scr ="https://i.pinimg.com/736x/84/b9/48/84b9484fc37435a37eeacb3704c78276.jpg"/> </body> </html>
6th Jul 2022, 12:27 AM
Ishan Ghimire
Ishan Ghimire - avatar
- 1
We can put but Did you try to do?
5th Jul 2022, 6:58 AM
A͢J
A͢J - avatar
- 1
Ishan Ghimire How did you try can you show your code?
5th Jul 2022, 8:31 AM
A͢J
A͢J - avatar