--- url: "https://www.w3.org/WAI/tutorials/tables/multi-level/" titulek: "Tables with Multi-Level Headers | Web Accessibility Initiative (WAI) | W3C" h1: "Tables with Multi-Level 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/multi-level/" drobecky: ["Home", "Design & Develop", "Tutorials", "Tables", "Multi-level Headers"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:22:27" znaku: 2164 slov: 347 kodovani: "utf-8" sha256: "e13dccfc59db1ba488f85eb4233f6b485b9a8f974f320250e47617046b3f8655" --- Tables that should be marked up this way include: - Tables with column headers that repeat or change part-way through the table. - Tables with three or more header cells associated with each data cell. Tables with multiple headers may also need to have a caption to identify it and a summary to describe the layout of the table, see [Caption & Summary](/WAI/tutorials/tables/caption-summary/). In many cases, it is worth considering to restructure the information in such tables to make them less complex for all readers, for example by splitting the information in smaller, more manageable tables as shown in Example 3. ## Table with multiple column headers in each column In the table below, the headers for the top half of the tables are different to the headers of the bottom half. The header changes halfway through the table which makes the headers in columns ambiguous. To ensure each data cell is associated with the correct header, each `` element has a unique `id` and each `` cell has a `headers` attribute that lists the `id` values of the associated header cells. In the following code snippet, the headers for the header cells themselves have been set to an empty cell (with the `id` “blank”). This will prevent some assistive technologies from reading a header for those heading cells. [Full code for Example “Table with multiple column headers in each column”](/WAI/tutorials/tables/examples/multiplecolumnheaders/) In this example, table headers are used as subheadings to describe what the next section of the table is about. Without these headers, the information would be unclear. Using the `headers` attribute, all three headers can be properly associated with the data cell. [Full code for Example “Table with three headers related to each data cell”](/WAI/tutorials/tables/examples/threeheaders/) ## Split up multi-level tables The two tables below provide the same information as the mutli-level table in the example above. This makes the information easier to understand for everyone and easier to code. Also, simple tables are much better supported by tools to create web content, including WYSIWYG (“What you see is what you get”) editors. Back to Top