HTML Images

HTML5 Images The HTML <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

Popular posts from this blog

Parallel Database design, query processing

Apache Hadoop Prerequisites and Installation

Starting with Apache Hadoop