Table summary and caption | |
summary="" | <table summary="products"> <tbody> <tr> <td> </td> <td > </td> </tr> <tr> <td ></td> <td > </td> </tr> </tbody> </table> |
<caption></caption> [for 508] |
<table> <tbody> <caption>products</caption> <tr> <td> </td> <td > </td> </tr> <tr> <td ></td> <td > </td> </tr> </tbody> </table> |
The caption element identifies the table whereas the summary attribute gives an overview of the purpose or explains how to navigate the table. If both are used, the caption should not duplicate information in the summary. If a table is used for layout, the caption element is NOT used. The purpose of a layout table is simply to control the placement of content; the table itself is "transparent" to the user. A caption would "break" this transparency by calling attention to the table.
Procedure
|