---
url: "https://www.w3.org/WAI/tutorials/tables/two-headers/"
titulek: "Tables with Two Headers | Web Accessibility Initiative (WAI) | W3C"
h1: "Tables with Two Headers"
popis: "Accessibility resources free online from the international standards organization: W3C Web Accessibility Initiative (WAI)."
jazyk: "en"
kanonicka: "https://www.w3.org/WAI/tutorials/tables/two-headers/"
drobecky: ["Home", "Design & Develop", "Tutorials", "Tables", "Two Headers"]
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-13 23:31:56"
znaku: 1563
slov: 258
kodovani: "utf-8"
sha256: "47b823e2059a91bbf946e3b1a7ef03cfad48869fcd6748b12f4ff24a5ee27fc3"
---
Additionally, you can use the `
` element to identify the table in a document. This is particularly useful for screen-reader users browsing the web page in “table mode” where they can navigate from table to table. More background and guidance on the using `` element is provided on the [Caption & Summary page](/WAI/tutorials/tables/caption-summary/).
The following table of opening times has header information in both the top row and the first column. All header cells are marked up as `` cells with `scope` attributes added.
In the header row, the `col` value for `scope` associates each header cell with the data cells in the column. In the header column, the `row` value associates the individual headers with their rows. Without this information, some users would not easily understand the relationship between header and data cells. In the example below, the “Open” and “Closed” labels are only useful if they can be assigned to a particular day and time.
[Full code for “Table with header cells in the top row and first column”](/WAI/tutorials/tables/examples/headertoprowfirstcol/)
In this table, the row header cells are in the second rather than in the first column. The approach is similar to the examples above: The scope of the header cells in the top row is set to `col`. By using the `row` value for `scope` assigns the header cells in the second column to the data cells on the left and the right of the individual header cell.
[Full code for “Table with an offset column of header cells”](/WAI/tutorials/tables/examples/scope-offset/)
Back to Top
|