Remember, however, that graphics aren??™t the most effective communication method in every
circumstance. Luckily, the
![]()
tag includes two attributes that enable you to describe your image using
plain text: alt and longdesc.
The alt attribute gives you a means to include a short description of a graphic. It is used in many ways:
n As a page is loading over the Web, the image is first displayed as an empty rectangle if the
![]()
tag contains width and height information. Some browsers display the alt description in this
rectangle while the image is loading, offering the waiting user a written preview of the forthcoming
image.
NOTE NOTE
CAUTION CAUTION
NOTE NOTE
319
Inserting Images 9
n In many browsers, the alt text displays as a tooltip when the user??™s pointer passes over the
graphic.
n A real benefit of alt text is providing input for browsers that don??™t show graphics. Remember
that text-only browsers are still in use, and some users, interested only in content, turn off the
graphics to speed up the text display.
n The W3C is working toward standards for browsers for the visually impaired, and the alt text
can be used to describe the image.
For all these reasons, it??™s good coding practice to associate an alt description with all your graphics.
Pages:
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658