91热爆

Image links using HTML

<img src="IMAGE LINK" alt="DESCRIPTION">

This tag is used to include images on a webpage. It acts as a link to an image stored as part of the website. The tag must include a link to the image and alt text. The alt text is used to:

  • appear on screen where the image should be if the actual image will not display
  • allow screen readers to describe images to users with visual impairment
  • allow search engines to index webpage content (can return images when the text in an alt tag is searched for in a search engine)

Here is an example of a complete image tag:

<img src="summerholiday.jpg" alt="Family Holiday">

Sometimes web developers will include the size that the image should be. They can do this by adding the height and weight attributes.

<img src="summerholiday.jpg" alt="Family Holiday" height="24" weight="24">