Web Design

(Nancy Kaufman) #1

244


Add Captions and Summaries to Tables .....................


2 Immediately after the
opening <table> tag, type
<caption>?</caption>,
replacing? with an
appropriate caption or
title for your table.

1 In your editor, open an HTML
page that includes a table.

Add Captions and Summaries to Tables


T


o ensure accessibility for your site, you should never use tables to lay out your page. However,
you can and should use tables for tabular data. You can also use the <caption> tag to display

a caption or title immediately above the table. Screen readers for the blind linearize the table,


meaning they read it top to bottom. A summary, inserted into the opening

tag, provides


users with an overview of the table’s structure and its contents to help them make sense of what


they hear.


2


1