Image Tag - <img>
This lesson discusses the Image <img> tag and its usage in web development.
This tag is used to insert an image in the document.
It is a self-closing tag that requires the src
attribute to specify the image file.
<img src="https://avatar.iran.liara.run/public" alt="Image" />
The code above shows an example of the <img />
tag. This
tag is used to insert an image in the document, which is displayed on the
webpage. The src
attribute specifies the image file, while the
alt
attribute provides alternative text for the image.