table-examples
From Microformats
| Table of contents |
[edit]
Table Examples
As the first stage of the microformats process, this page collects examples of best/common practice for using the table (http://www.w3.org/TR/REC-html40/struct/tables.html) tag to represent structured data.
[edit]
The Problem
Thought often abused for layout, the original purpose of HTML tables is to provide a two-dimensional structure for data. The purpose of this exploration is to determine if there are common patterns for annotationg those structures, and (if so) whether there is a need to formalize that as a microformat (a la xoxo for lists). The working hypothesis is tables typically represent two kinds of data:
- a list of dictionaries (with column headers, and sometimes row headers)
- a grid of numerical data (without any headers, or merely numeric indices)
[edit]
Participants
- Dr. Ernie (http://www.opendarwin.org/~drernie/)
[edit]
Real-World Examples
- Best practices (http://www.456bereastreet.com/archive/200410/bring_on_the_tables/) for marking up tabular data (especially for accessibility)
- < th scope=col|row id="name"> for headers
- caption, summary
[edit]
Existing Practices
[edit]
Proposal (N/A)
[edit]
See Also
- HTML 4.0 tables (http://www.w3.org/TR/REC-html40/struct/tables.html)
- XHTML 1.0 tables (http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-tables.html)
- XHTML 2.0 tables (http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-tables.html)
