Html5 Img Tag

In the img tag is used to link image for document or html page. In the image with if would like to add another document simply add <a> tag. <img> tag must fill two required attributes first one is src and second one is alt.Src attribute is a link image to document and alt attribute is a name of a image.

Syntax :

<img src = "" alt = ""/>

Example Code

<img src="images/flower-icon.jpg" alt="Flower Icon"/>

Out Put :

Flower Icon

In the above example <img> tag have linked to flower image.