W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2014

Re: Coding table notes

From: Christophe Strobbe <strobbe@hdm-stuttgart.de>
Date: Mon, 01 Dec 2014 15:12:26 +0100
Message-ID: <547C774A.70407@hdm-stuttgart.de>
To: w3c-wai-ig@w3.org

On 28/11/2014 23:33, Rabab Gomaa wrote:
> (...)
> I have a page with multiple tables that have their own notes. Here is
> what I think of for the table notes coding.
> - The table notes in a definition list wrapped with <aside> and placed
> inside <tfoot> element after <tbody>. Beside having a number to
> identify each table.

The tfoot element is not intended for free text notes; it can only
contain table rows (tr elements). A possible use case for tfoot is
repeating the column headers (cf. thead) in a long table; another is
presenting the sum, average, ... of the values in the columns. One of
the features that the authors of HTML4 had in mind was scrolling the
tbody rows between the thead and tfooter rows.
(Before HTML5, tfoot could only occur between thead and tbody; HTML5
also allows it after tbody.)

If the notes are important for understanding the table, I would not put
them in an aside.
The HTML5 spec says: "The aside element represents a section of a page
that consists of content that is tangentially related to the content
around the aside element, and which could be considered separate from
that content. Such sections are often represented as sidebars in printed
The element can be used for typographical effects like pull quotes or
sidebars, for advertising, for groups of nav elements, and for other
content that is considered separate from the main content of the page."

Best regards,

Christophe Strobbe

> <table>
> <caption>Table 12 : xyz
> <thead> <th> <th> <th> </thead>
> <tbody> <td> <td> <td> </tbody>
> <tfoot col="3">
> <aside class="wb-fnote" role="note">
> <h2 id="fn-table12">Table 12 Notes</h2>
> <dl> <!-- place <dt> and <dd> here --></dl>
> </aside>
> </tfoot>
> </table>

Christophe Strobbe
Akademischer Mitarbeiter
Responsive Media Experience Research Group (REMEX)
Hochschule der Medien
Nobelstraße 10
70569 Stuttgart
Tel. +49 711 8923 2749

"La vie est courte, hélas! et je n'ai pas encore lu tous mes livres!" (d'après Mallarmé).
Received on Monday, 1 December 2014 14:12:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:53 UTC