--- url: "https://www.w3.org/WAI/WCAG22/Techniques/failures/F90" titulek: "F90: Failure of Success Criterion 1.3.1 for incorrectly associating table headers and content via the headers and id attributes | WAI | W3C" h1: "Technique F90:Failure of Success Criterion 1.3.1 for incorrectly associating table headers and content via the headers and id attributes" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:43:14" znaku: 3014 slov: 431 kodovani: "utf-8" sha256: "bd2725d54f60bfa26ef61489f74f132e32897c7d2c0155dd5cfef6ff0fb83c3d" --- # Technique F90:Failure of Success Criterion 1.3.1 for incorrectly associating table headers and content via the headers and id attributes ## About this Technique This technique relates to [1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) (**Failure**). This failure applies to HTML. Failure techniques show examples of how content can fail particular WCAG success criteria. However, content may still satisfy those criteria if it includes equivalent/alternative content or functionality that **does** meet the normative requirements. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description One way for authors to explicitly associate header cells to data cells is by using the id and headers attributes. These allow the author to associate multiple header cells to a particular data cell, which can be necessary when complex data tables with more than one level of heading are used. The failure occurs when the relationship between data cells and corresponding header cells cannot be programmatically determined correctly because the association of `id` and `headers` attributes is faulty. This can happen, for example, when copying code within tables and forgetting to update the code. ## Examples Note: The example below is based on the complex data table presented as example 1 of [Technique H43: Using id and headers attributes to associate data cells with header cells in data tables](../html/H43). ### Example 1: Table content not correctly associated to nested headers In this example, nested headers are used, but the content cells are incorrectly associated via the `id` and `headers` attributes. All cells reference top level header 'Exams' (`id="e"`) - this isn't correct for the last three columns which should reference header 'Projects'. Also, the referencing of the second level column headers has been accidentally swapped even though in this example this makes no difference as the contents (1, 2, Final) are repeated. Example Code: ```
Homework Exams Projects
1 2 Final 1 2 Final
15% 15% 15% 20% 10% 10% 15%
``` [Failure example of table incorrectly associating headers attributes in table content (td) to table headers (th)](../../working-examples/failure-table-headers-incorrect-association/). ## Tests ### Procedure 1. For tables that associate data cells to header cells via the id and headers attributes, check that the programmatic association is correct. ### Expected Results - If check #1 is false, then this failure condition applies and the content fails the Success Criterion. Back to Top