HTML Images
<img> tag is used to embed an image in a web page.
The
<img> tag is empty, it contains attributes only, and does not have a closing tag.
The
<img> tag has two required attributes:
- src - Specifies the path to the image
- alt - Specifies an alternate text for the image
Syntax
<img src="url" alt="alternatetext" />
Example:-
<img src="imgtag.png" alt="Flowers in Chania" width="460" height="345" />
Output:

Comments
Post a Comment