HTML IMG <img> Tag
0 2902
The HTML IMAGE <img> tag display an image on the web page. It is an empty tag that contains attributes like src, width, height, and alt.
In HTML, the <img> tag has no end tag while in XHTML the <img> tag must be properly closed.
Program:
<!DOCTYPE>
<html>
<head>
<title>Img Tag</title>
</head>
<body>
<h2>HTML Image Example</h2>
<img src="code-1.png" alt="The codingtag logo"/>
</body>
</html>
Output:
Share:
Comments
Waiting for your comments