Alt tag
-
The alt tag or attribute is an html command in the img tag used to display images in html web pages.
It allows display of text to be used in place of the image. The text is shown if the image is missing, if the surfer is
using a text-only browser, or if the surfer is using special access browsers for the visually impaired, in which case
software may speak the words in the tag.
For example, suppose you have a picture of a grizzly bear you want to show in a web page. The picture is in a file named
grizzly_bear.jpg and you you want to tell people it is grizzly bear. The code would be:
<img alt="Grizzly Bear" border ="0" src = "http://mysite.com/grizzly_bear.jpg">
The text in the alt tag also helps search engines understand that the Web page is about grizzly bears and it tells them
that the photo is a photo of a grizzly bear. When the page is crawled by the search engine spider software, the photo will be registered in
the image search pages of Google for example, and if someone searches for a [grizzly bear] in Google images, that photo
will be retrieved along with others.