--- url: "https://www.w3.org/WAI/WCAG22/Techniques/html/H63" titulek: "H63: Using the scope attribute to associate header cells with data cells in data tables | WAI | W3C" h1: "Technique H63:Using the scope attribute to associate header cells with data cells in data tables" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:42:45" znaku: 3038 slov: 460 kodovani: "utf-8" sha256: "e55bc5c5d614e6a64ef18b2b8a0e3570f7bd87dc36c27469b8d43c9987e47403" --- # Technique H63:Using the `scope` attribute to associate header cells with data cells in data tables ## About this Technique This technique relates to [1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) (**Sufficient** when used for making information and relationships conveyed through presentation programmatically determinable). This technique applies to HTML. 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/WCAG22/Techniques/about). ## Description The objective of this technique is to associate header cells with data cells in complex tables using the `scope` attribute. The `scope` attribute may be used to clarify the scope of any cell used as a header. The `scope` identifies whether the cell is a header for a row, column, or group of rows or columns. The values `row`, `col`, `rowgroup`, and `colgroup` identify these possible scopes, respectively. For simple data tables where the header is not in the first row or column, like the one in Example 1, this technique can be used. Note For simple tables that have the headers in the first row or column, it is sufficient to simply use the `th` elements without `scope`. For complex tables use `id`s and `headers` as in [Using `id` and `headers` attributes to associate data cells with header cells in data tables](../html/H43). Some users may find it easier to work with several simple tables than one more complex table. Authors may wish to consider whether they can convert complex tables to one or more simple tables. ## Examples ### Example 1: A simple schedule In the following example, the first column contains serial numbers for rows in the table, and the second column contains the key value for the row. The cells in the second column may then use `scope="row"`. The cells in the first row too are marked up with `td` and use `scope="col"`. ```
| Name | Phone Number | City | |
|---|---|---|---|
| 1. | Charlotte Smith | 412-212-5421 | Pittsburgh |
| 2. | Joetta Frere | 410-306-5400 | Baltimore |
| 3. | David Walls | 281-511-6600 | New York |