HTML and CSS Reference
In-Depth Information
<h3><img src="pics/fancy_bullet.gif" alt="*">Introduction</h3>
A graphical browser displays the bullet image; in a nongraphical
browser, the
alt
asterisk takes the place of the missing bullet. Similarly,
use
alt
text to replace special image bullets for list items. For example,
the following code:
<ul>
<li> Kumquat recipes <img src="pics/new.gif" alt="(New!)">
<li> Annual harvest dates
</ul>
displays the
new.gif
image with graphical browsers and the text
"(New!)" with text-only browsers. The
alt
attribute uses even more
complex text (see
Figure 5-10
):
Figure 5-10. Text-only browsers such as Lynx display an
image's alt attribute text