WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: TD, TH, SCOPE

for

From: Weissenberger, Todd M
Date: Aug 21, 2012 3:03PM


David,

According to the HTML5 reference at w3.org (Draft 29 March 2012) [http://www.w3.org/TR/html-markup/td.html], the scope attribute is no longer valid for the <td> element, so that's one thing. As for the nature of "scope" the HTML4 spec defines scope as follows:

"This attribute specifies the set of data cells for which the current header cell provides header information. This attribute may be used in place of the headers attribute, particularly for simple tables. When specified, this attribute must have one of the following values:

row: The current cell provides header information for the rest of the row that contains it (see also the section on table directionality).
col: The current cell provides header information for the rest of the column that contains it."

That seems to suggest that the purpose of scope is to define a header relationship to a row or column. With that in mind, if the cells in question aren't logical or semantic headers, I'd go with no scope. If they are headers, then I'd use scope pretty much automatically.

$0.02

Todd


T.M. Weissenberger
Web Accessibility Coordinator
University of Iowa
<EMAIL REMOVED>
319-384-3323