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

HTML IMG <img> Tag

Last Updated by Jai 09-Jul-19

0 811

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.


<title>Img Tag</title>
<h2>HTML Image Example</h2>
<img src="code-1.png" alt="The codingtag logo"/>


HTML IMG <img> Tag


Leave a Reply

    Waiting for your comments