In HTML, images are defined with the tag. it is used to represent / display all types of image with
tag.
In html, images are defined with the <img> tag. it used to represent / display all types of image with <img>
tag.
The <img>
tag is empty, it contains attributes only, and does not have a closing tag.
The src
attribute specifies the URL (web address) of the image:
example:
<img src="url" />
Main Attributes:
- src
- alt
- width
- height