Building pagesPolicies, legal |
Alt tagsImagesAlt tags provide alternative text for images on a web site. Most
images on your web page should have alt tags. Alt tags are
inserted into img tags like this:.
Alt tags should be meaningful and provide the same information that
visual users see. The alt tag below doesn't provide meaningful
information. Those who can't see the logo don't what department it
refers to.
A better alt tag would be:
Alt tags don't need to describe everything in an image. It would be nearly impossible to accurately depict a photograph, for example. But alt tags need to convey the same information you intend the image to convey. A good test for alt tags is to pretend you are reading your document over the telephone. Non-essential page elementsBullets or non-essential page elements, such as graphic spacers, should
include an * alt attribute in the img tag. The * alt tag hides non-essential
graphic elements for those who are using adaptive technologies or
text-only browsers. Example:
AnimationsAnimated images need alt tags that describe
both the appearance and the action of the art. For usability
reasons, it's best not to use animations if they are strictly for graphic
embellishments and don't provide any real content. Here's an example
of an alt tag for an animation.
Image mapsAlt tags should be included for each image map hot spot. Example:
Title tags on links"Title" tags can be added to any link to help clarify what's on the
other side of the link. Title tags are particularly useful on images
that are used as links. Example:
|
Adding alt tags to all images is an easy way to improve the accessibility of web pages. |