IMG <img> Tag

by Jai 09-Jul-19

0 332


The HTML <img> tag display an image on the web page. It is an empty tag that contain 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:

IMG <img> Tag



Share:


Comments

    Waiting for your comments

Leave a Reply