Skip to: content, navigation

by Ian Lloyd

summary (HTML attribute)

Browser support full matrix
IE5.5+ FF1+ Saf1.3+ Op9.2+
Full Full Full Full
Spec
Depr. Version
No HTML 2
summary="string"

Example

The summary for this table provides more information about its contents:

<table summary="Interest Rates of accounts for young savers,
    correct as at 12 January 2008">
  <tr>
    <th>Account Type</th>
    <th>Interest Rate</th>
  </tr>
  <tr>
    <td>Smart</td>
    <td>From 2%</td>
  </tr>
  <tr>
    <td>Young Saver</td>
    <td>From 1.6%</td>
  </tr>
</table>

Description

The optional summary attribute isn’t intended to be displayed on the screen (for that, you should probably use a caption element), but it may be used to provide extra information about the table’s contents for non-visual web browsers. For example, a user accessing the web page with a screen reader may find a summary useful—it lets the user decide at that point whether or not the table is of any use or interest. He or she can skip straight to the following content if the answer to that question is “no.” Of course, for sighted users, a quick glance at the table as a whole provides an adequate summary.

Value

The value for summary is a brief summary of the table’s structure or purpose.

Compatibility

IE5.5Full
6.0Full
7.0Full
Firefox1.0Full
1.5Full
2.0Full
Safari1.3Full
2.0Full
3.0Full
Opera9.2Full

This attribute’s compatibility is debatable. No browser renders it on the page, so it’s difficult to say whether or not any browsers have difficulties with it. The biggest question regarding its compatibility is really centered on assistive technology—for example, screen readers—and whether they are capable of retrieving that useful summary information.

User-contributed notes

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters