TH
| Description | Represents a table header cell that contains descriptive information for the table’s columns or rows. |
|---|---|
| Namespace | 1.7 2.0 |
| Category | block |
Attributes
Specifies how the element is placed relative to surrounding content (e.g., block-level or inline flow).
Defines the direction of text flow (e.g., left-to-right, right-to-left, or vertical).
Sets the background color for the element’s content area.
Specifies the color of the border around the element.
Indicates the style of the border (e.g., solid, dashed, dotted).
Defines the thickness of the border line in user space units (such as points).
Determines the space between the element’s border (or boundary) and its inner content.
Applies the primary color (fill or stroke) for the text or graphic content.
Declares an explicit width for the element in user space units.
Declares an explicit height for the element in user space units.
Specifies vertical alignment of a block-level element (e.g., top, middle, bottom) within its container.
Specifies how inline content is aligned within the line box (e.g., baseline, center).
Indicates the border style for table cells or similar tabular structures.
Specifies the padding inside table cells or table-like elements.
Main indicator of type. This semantic association allows tools to present and support interaction with the object in a manner that is consistent with user expectations about other objects of that type.
Differences
Well tagged PDF:
The 'TH' element in Well-Tagged PDF represents a table header cell, used to designate header information within a table.
Header cells should be tagged using 'TH' and clearly identified as headers. They should be appropriately nested within a 'TR' and table structure.
PDFUA:
In PDF/UA, the 'TH' element is critical for conveying the purpose of header cells in a table, which assists users with navigation and comprehension.
Each header cell must include scope or association information to link it with corresponding data cells, ensuring that screen readers can deliver proper context.
Use cases
Simple table
Try itComplex table with two rows in header, two rows in the body and one row in the table footer
Try itTag Relationships
Permitted Parent Tags
Click on any tag to view its details.
Related Matterhorn Protocol checkpoints
- Tags are not in logical reading order.
- Structure elements are nested in a semantically inappropriate manner. (e.g. a table inside a heading).
- The structure type (after applying any role-mapping as necessary) of a structure element is not semantically appropriate.
- A table-related structure element is used in a way that does not conform to the syntax defined in ISO 32000-1, Table 337.
- A row has a header cell, but that header cell is not tagged as a header.
- A column has a header cell, but that header cell is not tagged as a header.
- In a table not organized with Headers attributes and IDs, a TH cell does not contain a Scope attribute.
- A given cell’s header cannot be unambiguously determined.