======9.2.3. Use the scope attribute to associate cells with the headers in simple tables ======
A simple data table is a table in which the header cells apply systematically to all the data cells in the corresponding row or column.
To associate the headers with the corresponding data in this type of table, use the ''scope'' attribute on the ''
'' tags. The value of this attribute will change according to whether the header cell concerns:
* The entirety of a column: ''scope="col"''.
* The entirety of a row: ''scope="row"''.
Average monthly temperatures of the 3 largest United States cities in 2012.
|
New York |
Boston |
Washington |
June |
22°C |
28°C |
26°C |
July |
24°C |
30°C |
28°C |
Average monthly temperatures of the 3 largest United States cities in 2012.
|
New York |
Boston |
Washington |
June |
22°C |
28°C |
26°C |
July |
24°C |
30°C |
28°C |
===== Related recommendations =====
* Previous recommendation: [[notices:html-css:baliser-chaque-cellule-d-entete-de-ligne-et-de-colonne-avec-th]]
* Next recommendation: [[notices:html-css:utiliser-l-attribut-headers-et-id-pour-associer-les-cellules-aux-entetes-des-tableaux-de-donnees-complexes]]
|