XML technologies / CSS / Advanced websites with CSS / Putting CSS in perspective / The benefits of CSS design / Improved accessibility

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

If you ever have the chance to browse the web with a visually impaired person, take it! Alternatively, get a screen reader, turn off the monitor and listen to what happens.

Pages laid out with tables, images and other nonsemantic HTML are very difficult for visually impaired users. A screen reader usually reads content aloud from top to bottom. Modern table-based layouts often make users listen to 30 seconds or more of nonsense before the actual content begins. Here is an example of such an announcement:

Table with one column and five rows, Table with three columns and one row, Link, Graphic, slash logo underline main dot gif, Table end, Table with two columns and one row, Link, Graphic, slash nav underline about underline us dot gif, Link, Graphic, slash nav underline site underline map dot gif, Table end, Table end, Table with one column and twenty-six rows, Table with one column and seventeen rows …

If that seems irritating, to put it mildly, imagine enduring it on every page you visit!

CSS design and semantic HTML almost eliminate this verbal clutter by giving every tag a structural meaning useful to viewers or listeners. An aural browser ignores the formatting properties in the CSS file, so users need not listen to them.

On a purely semantic HTML page, visually impaired users no longer need to wonder whether a word is bold because of its meaning or merely because the designer preferred its appearance. Text marked up solely for design should receive its properties only through CSS. Elements emphasized for semantic reasons use HTML elements such as <strong> or <em>. Visual browsers also render these as bold or italic, but unlike the visually equivalent elements <b> and <i>, their purpose is meaning rather than presentation.

Many comprehensive guidelines help developers make their sites accessible to disadvantaged users. Required reading should include the official Web Content Accessibility Guidelines 1.0 (WCAG), along with Guideline 3, which focuses on semantic markup. We will revisit this in several projects in this book.

  

 

 

 

back to top