Prev | Current Page 206 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

In such cases, the fact that the image is a navigation aid is likely to be of
Note that this chapter??™s section on images largely concerns itself with inline images??”
the addition of images to the content of a web page. For an overview of using images
as backgrounds, see the ???Web page backgrounds??? section of Chapter 2; for an
overview of working with images within web navigation and with links in general, see
much of Chapter 5.
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
134
more significance than its visual appearance. For instance, many companies use logos as
links to a homepage??”in such cases, some designers would suggest using ???Company X
homepage??? for the alt text, as it??™s more useful than ???Company X.???
Alternatively, stick with using the alt attribute for describing the image, and add a title
attribute to the link, using that to describe the target. Depending on user settings, the
link??™s title attribute will be read out in the absence of any link text.
Null alt attributes for interface images
In some cases, images have no meaning at all (e.g., if they??™re a part of an interface), and
there is some debate regarding the best course of action with regard to such images??™ alt
values. Definitely never type something like spacer or interface element, otherwise
screen readers and text browsers will drive their users crazy relaying these values back to
them. Instead, it??™s recommended that you use a null alt attribute, which takes the form
alt="".


Pages:
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218