+ 1
How do we go about in inserting an image in html...like i want to see the image as the output
img src="girl_jpg"
2 Respuestas
+ 2
Finias In the src attribute , Use the value girl.jpg instead of girl_jpg ...
This will help you:
https://www.sololearn.com/learn/HTML/1030/?ref=app
https://code.sololearn.com/WSLZPpBIFgr7/?ref=app
+ 2
<img src="..." alt />
Explanation:
*img: Name of the tag
*src: link to image (i.e flower.png)
*alt: means alternative text if image fails to load. But it's facultative. You can add it or not.
*The slash (/) at the end of img tag is facultative.
*There is no end tag for img.
i.e : <img src="flower.png" alt="My flower" />
Or <img src="flower.png">
Both will work.