Providing Alternative Text
Some people surf the Web without images turned on. Sounds strange in today's world of high bandwidth, but some people still don't have high-speed access, so images can slow down their access to your page's content, and they will disable the images. Another important concern is that many people visiting the Web are visually impaired or blind. In all these cases, it's helpful to provide some clues to your visitor as to what the image represents.
This is done using alternative text, which uses the alt attribute and a description, as shown in Example 3-2.
Example 3-2. Adding an alt text description
<img src="photo.jpg" width="250" height="188" alt="photograph of a delicious Vietnamese noodle dish from restaurant Pho 88" /> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access