How to Fix THead and TH Tags for Accessible PDF Tables
Question details
The user needs to correctly structure an accessible PDF table by organizing header rows into THead tags and defining TH tags for proper screen reader support.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Structuring a complex PDF table to meet accessibility compliance standards by properly nesting header tags and establishing relationships between header and data cells.
- Observed behavior
- The table currently has its header rows trapped inside TBody tags, lacks proper THead structures, and contains multiple values mixed within individual cells.
Ensure you have access to the Tags pane in your PDF editing software, and review your document's logical reading order to identify exactly which table rows function as primary headers.
Manually Restructure THead and TH Tags in the Tags Pane
Use the Tags tree to manually create a THead container, convert standard data cells to table headers (TH), and define their scope for assistive technologies.
In many PDF documents, automatic conversions fail to distinguish table headers from regular data, placing everything inside a generic TBody tag. Manually restructuring the tags allows you to enforce strict accessibility guidelines.
Open the Tags pane, right-click the parent <Table> tag, select 'New Tag', type 'THead', and press Enter to create the header container.
Locate the header row tags (<TR>) inside the <TBody> section, and drag them into your newly created <THead> tag.
Right-click the data cells (<TD>) inside your header row, select 'Properties', and change their type to 'Table Header' (<TH>).
In the Object Properties dialog, set the necessary column spans, define the Header Scope (e.g., Column or Row), and assign a unique ID to each <TH> cell so it can be associated with corresponding data cells.

Define Headers Using the Reading Order Tool
Leverage the visual Reading Order tool to quickly assign header attributes to specific table cells before refining them in the Tags pane.
Create Well-Structured PDF Tables with WPS Office
Instead of manually fixing complex PDF tag trees, you can easily create beautifully formatted, accessible tables in WPS Writer and export them directly to PDF, ensuring clean underlying structures automatically.
- 1. Insert a Table in WPS Writer: Open WPS Writer, navigate to the 'Insert' tab, and click on 'Table' to create a clean, highly structured grid.
- 2. Format Your Headers: Enter your data, ensuring your first row is clearly distinguished using the built-in 'Table Tools' formatting options.
- 3. Export Natively to PDF: Go to 'Menu' and select 'Export to PDF'. WPS Office will convert your document while maintaining standard document formatting and structure.

Frequently Asked Questions
What is the difference between THead and TBody in PDF accessibility?
THead (Table Head) is used to contain the rows that act as column headers, while TBody (Table Body) houses the main data cells. Assistive technologies rely on THead to properly announce column categories as visually impaired users navigate through the data.
Why are my TH tags missing in the PDF Tags tree?
When tables are auto-generated or converted from poorly structured source documents, header rows often default to standard TR/TD tags placed inside a TBody. You must manually create the THead container and change the TD tags to TH tags via the Properties menu.
How do I handle complex PDF tables with merged header cells?
Complex tables require you to define 'Column Spans' and 'Row Spans' within the cell's Object Properties. You must also assign a unique ID to each TH cell and explicitly link those IDs to the corresponding data cells so screen readers can accurately interpret the merged structure.
Can I rename a tag directly to TH in the Tags pane?
Yes. While you might not see TH immediately in a default dropdown list, you can simply type 'TH' when creating a new tag, or right-click an existing TD tag, choose Properties, and change its type to Table Header.




