HTML & CSS
I know anchor text and ALT tag. But how to create ALT Tag??? and other tricks please share it.
For create an ALT tag you just put alt="keyword" in the img balise (ex: <img src="way-of-your-picture.jpg" alt="keyword"> )
From memory IE uses alt for the "tool tip" and Firefox uses title; do not forget the image size either:
<img src="image.jpg" width="200" height="200" alt="A nice image" title="A nice image">
If using php you can populate the alt tag with the image name and automaticaly create the width and height information as well as get some info from a database or text file if it is stored there.
The purpose of the alt text is to provide an alternative for people unable to see the image, not to stuff keywords for SEO. If a keyword is appropriate for the alt text, then by all means use it, but remember the point is to convey the meaning of the picture for a blind person using a screen reader, someone with images disabled, etc.
This topic is now closed. New replies are no longer allowed.