--- url: "https://www.w3.org/WAI/WCAG21/Techniques/html/H39" titulek: "H39: Using caption elements to associate data table captions with data tables | WAI | W3C" h1: "Technique H39:Using caption elements to associate data table captions with data tables" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 07:21:53" znaku: 2374 slov: 350 kodovani: "utf-8" sha256: "d267972f363b5d76316c0074dfba7b1b8af5afb73f1e81ac6596e50c0c46345d" --- # Technique H39:Using `caption` elements to associate data table captions with data tables ## About this Technique This technique relates to [1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships) (**Sufficient** when used for making information and relationships conveyed through presentation programmatically determinable). This technique applies to HTML data tables. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG21/Techniques/about). ## Description The objective of this technique is to programmatically associate captions for data tables where captions are provided in the presentation. The `caption` for a `table` is a table identifier and acts like a title or heading for the table. The `caption` element is the appropriate markup for such text and it ensures that the table identifier remains associated with the table, including visually (by default). In addition, using the `caption` element allows screen reading software to navigate directly to the caption for a table if one is present. Note Although WCAG 2 does not prohibit the use of layout tables, CSS-based layouts are recommended in order to retain the defined semantic meaning of the HTML `table` elements and to conform to the coding practice of separating presentation from content. If a table is used for layout, the `caption` element is not used. The purpose of a layout table is simply to control the placement of content; the table itself is "transparent" to the user. A `caption` would "break" this transparency by calling attention to the table. See [F46](../failures/F46) for details. ## Examples ### Example 1: An appointment calendar with a `caption` ``` ...
Schedule for the week of March 6
``` ## Related Resources *No endorsement implied.* - [HTML - the `caption` element](https://html.spec.whatwg.org/multipage/tables.html#the-caption-element) . ## Tests ### Procedure For each data table that has content presented as a title: 1. Check that the table includes a `caption` element. 2. Check that the text that titles the table is included in the `caption` element. ### Expected Results - #1 and #2 are true. Back to Top