HTML TutorialsHtml What is
The required attributes are alt,src and optional attributes are align, border, height, hspace, ismap longdesc, usemap, vspace, width and event attributes are onabort, onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress and onkeyup.
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.
In the above example <img> tag have linked to flower image.