
Web developers may be tempted to use markup incorrectly in order to achieve a desired effect. Use markup and style sheets as they are designed to be used.
Using markup for a presentation effect (e.g., using a table for layout or a header to change the font size) makes it difficult for individuals using some assistive technologies to understand the organization of the page or to navigate through it. For example, when using <BLOCKQUOTE> to create visual effects, such as indentation and alignment, rather than to markup a quotation, screen readers may make it unintelligible to the user.
1. Use style sheets to stylize textIn the example:
Career Information
use style sheets rather than graphics for the stylistic C and I.
2. Validate documents to published formal grammars
3. Use style sheets to control presentationFor example:
| Structural | vs | Presentational |
|---|---|---|
|
|
TIP To determine if content is structural or presentational, create an outline of the document. Each point in the hierarchy denotes a structural change. Use structural markup to mark these changes and presentational markup to make them more apparent visually.
4. Use relative rather than absolute units For example, use:
H1 { font-size: 2em }
rather than:
H1 { font-size: 12pt }
For example:
BODY { margin-left: 20%; margin-right: 15%}
5. Use headersFor example:
<H1>Heading</H1>
<H2>Sub-heading</H2>
<H3>Another heading level</H3>
<H2>Sub-heading</H2>
<H2>Sub-heading</H2>
6. Mark up listsFor example:
<UL> unordered list
<OL> ordered list
<DL> definition list
<LI> list item
7. Mark up quotations The bottom line, as stated in WCAG Guideline 3, is use markup and style sheets and do so properly.