To make a site more attractive, informative images are added to the web pages. To embed images into web pages <img> tag is used. The <img> tag is used as a link to the image.
The <img> tag is an empty tag, meaning it does not have an ending tag, it only contains attributes.
Syntax,
<img src="referenceToImage" alt="No image">
src attribute is for referring to the image or is used to mention the name of the image. alt tag is used to show the text when the image can’t be loaded on to the web page. for example,
<img src="Cat.png" alt="Cat image cannot be loaded." >