Example for Checkpoint
5.1, continued.

Slide 44 of 120
Previous slide. Next slide.

HTML 4.0 also allows you to explicitly link header information to columns and rows using the "headers" attribute of the <TD> and <TH> elements, e.g.:

Cups of coffee consumed by each senator
Name Cups Type of Coffee Sugar?
T. Sexton 10 Espresso No
J. Dinnen 5 Decaf Yes

If you use the 'headers' attribute, a browser or screen reader might be able to expose or read the contents of the cells (if the user wishes) like this:

Name: T. Sexton, Cups: 10, Type: Espresso, Sugar: No
Name: J. Dinnen, Cups: 5, Type: Decaf, Sugar: Yes

because each datum is explicitly associated with its appropriate header.

View the markup code that would generate this example.

Up one level To Checkpoints for Guideline 5.
Next slide: Example for Checkpoint 5.2

Introduction: Overview Guidelines: Overview Checkpoints: Overview Examples: Overview

Previous page. Next page.

Chuck Letourneau & Geoff Freed

W3C Web Accessibility Initiative

Copyright © 2000 W3C