image tag in html
The <img> tag defines an image in an HTML page.
The <img> tag has two required attributes: src and alt.
Images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.
<!DOCTYPE html>
<html>
<body>
<img src="smiley.gif" alt="Smiley face" width="42" height="42">
</body>
</html>
Comments
Post a Comment