Imagetag

396 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
396
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Imagetag

  1. 1. Post/display Image(s)<br />HTML<br />
  2. 2. HTML <img> tag<br />Definition and Usage<br />The <img> tag embeds an image in an HTML page.<br />Notice that images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.<br />The <img> tag has two required attributes: src and alt.<br />
  3. 3. Syntax for defining an image:<br /><imgsrc="url" alt="some_text"/> <br />
  4. 4. HTML The Alt Attribute <br />The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.<br />The value of the alt attribute is an author-defined text: <br /><imgsrc="boat.gif" alt="Big Boat"> <br />The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).<br />

×