IMG Tag in HTML || Use of image tag || HTML IMG Tag
×

HTML IMG <img> Tag

2919

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:





Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments