[DRAFT] Scope of headers
Scope is the attribute used to define the direction and range of data cells that are covered by a header cell. For example a header cell that spans three columns with the scope value "colgroup" associates the header with the data cells in all three columns. The scope attribute should be used for all <th> cells where either the direction or range of data cell coverage needs to be clearly associated.@@@Or always?@@@. Possible values for the scope attribute are "row", "col", rowgroup" or "colgroup".
Example 1:Table with header cells in one column only
This example has <th> elements for all cells in the left column of a table. The scope value "row" is used on each <th> cell to ensure that it cannot be mistaken as a header for other cells in the same column.
Example 2: Table with an offset (@@@internal?@@@) column of header cells
In this table the row header cells are in the second column rather than the first. The scope values "row" and has been used on the <th> second column cells to ensure that data cells in the first column, as well as those in cells to the right of the headers are correctly associated.
Example 3: Table with headers spanning multiple rows or columns
In this example, some of the row header cells span two or more rows of data cells and one column header spans three columns.
|Poster name||Color||Sizes available|
|Black and white||A1||A2||A3|
|Angels||Black and white||A1||A3||A4|
<th colspan="3" scope="coltroup">Sizes available</th>
<th rowspan="3" scope="rowgroup">Zodiac</th>
Related WCAG2.0 Techniques
The following WCAG 2.0 technique was used in the examples above: