04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

exercise solutions<br />

Exercise<br />

Solutions<br />

Internet<br />

Explorer<br />

displays a<br />

broken image<br />

icon and the<br />

alt attribute<br />

text next<br />

to it.<br />

218 Chapter 5<br />

Here are the results of having a broken image in a few different browsers. In most<br />

cases, the browser is able to use the extra alt attribute information to improve what<br />

is displayed. Why do we care? After all, this is an error in a Web page; we should just<br />

fix it, right? Well, in the real world things are often not ideal; sometimes things break,<br />

Internet connections go bad in the middle of a page load, or visually impaired users<br />

need to hear what is in the image, because they can’t see it.<br />

PC<br />

The Firefox browser just displays the alt<br />

attribute, as if it were text, if the image<br />

can’t be retrieved.<br />

Mac<br />

On the Mac, Internet<br />

Explorer also displays<br />

a broken image icon<br />

and the alt attribute<br />

text next to it.<br />

Safari on the Mac<br />

doesn’t make good use<br />

of the alt attribute<br />

from broken images.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!