Table bookmarklets explained
These bookmarklets help you inspect the structure and accessibility of HTML and ARIA tables. Use them to review captions, headers, cell relationships and table roles.
This page explains the bookmarklets available on the Intopia's accessibility testing bookmarklets page.
On this page
Bookmarklet 6. Highlight captions and headers
This helps you inspect the structure of HTML tables and review how their header cells have been marked up. Highlights important accessibility features within HTML tables. It identifies:
- table elements
- table captions
- header cells
- header cells with a
scope attribute
- header cells without a
scope attribute
Transcript
- Step 1: Start on Intopia's accessibility testing bookmarklets page
- Step 2: Find the "Highlight captions and headers" bookmarklet
- Step 3: Drag the bookmarklet to your browser's Bookmarks Bar
- Step 4: Use the test page to review the bookmarklet
- Step 5: Activate the bookmarklet
- Step 6: Use 'n' to move through the page to review the highlighted elements
- Tables, captions and header cells are all displayed by default
- Press 1 to view table only
- Press 2 to view caption only
- Press 3 to view header cells only
- Press 4 to reveal scope information
- Press the "Escape" key to remove the overlay
Use this bookmarklet when you want to:
- identify table captions
- identify row and column header cells
- check whether header cells use the
scope attribute
- understand the basic structure of a table
- find tables that may need further accessibility testing
How to use it
- Drag a bookmarklet to your browser's Bookmarks Bar.
- Open the page you want to inspect.
- Click the Highlight captions and headers bookmarklet.
- Scroll through the page to review the tables.
- Press
n to cycle through table, caption and th elements one at a time.
- Press
Esc to remove the overlay.
By default, tables, captions and header cells are all displayed. Scope information (key 4) is hidden by default — press 4 to reveal it. The keyboard shortcuts let you focus on one part of the table at a time.
When reviewing a table, check for:
- A useful caption that identifies the purpose of the table.
- Header cells that clearly describe the rows or columns they relate to.
- Appropriate use of
scope, such as scope="col" for column headers and scope="row" for row headers.
- Cells that look like headers but use ordinary data cells (
td) instead of th.
- Complex header relationships that may not be adequately described using
scope alone.
Bookmarklet 7. Highlight table IDs and headers
Highlights the relationships between data cells and their associated header cells within complex HTML tables.
When you navigate to a table cell, a floating badge displays the cell's content together with its id or headers attribute where present. When a data cell references one or more header cells using the headers attribute, those header cells are highlighted in green, making the relationships immediately visible.
It also identifies empty table cells.
Transcript
- Step 1: Start on Intopia's accessibility testing bookmarklets page
- Step 2: Find the "Highlight table IDs and headers" bookmarklet
- Step 3: Drag the bookmarklet to your browser's Bookmarks Bar
- Step 4: Use the test page to review the bookmarklet
- Step 5: Activate the bookmarklet
- Step 6: Use 'tab' or 'n' or mouse click to move through the table cells
- Review the floating badge for each cell to see the cell value, ID, and associated headers
- td cells are highlighted in blue
- th cells are highlighted in green
- Press the "Escape" key to remove the overlay
Use this bookmarklet when you want to:
- understand how complex tables associate data cells with header cells
- verify
id and headers relationships
- inspect the structure of complex HTML tables
- identify empty table cells
- teach or learn how accessible table relationships work
How to use it
- Drag a bookmarklet to your browser's Bookmarks Bar.
- Open the page you want to inspect.
- Click the Highlight table IDs and headers bookmarklet.
- Press
Tab or n to move through the table cells one at a time.
- Review the floating badge for each cell, and observe which header cells are highlighted as you navigate.
- Press
Esc to remove the overlay.
When reviewing a table, check for:
- Data cells that reference the correct header cells using the
headers attribute.
- Header cells that have unique
id attributes.
- Highlighted header cells that provide the correct row and column context for each data cell.
- Complex tables where multiple header cells combine to describe a single data cell.
- Empty table cells, which may indicate missing information or unintended markup.
Bookmarklet 8. Highlight ARIA table roles
Highlights the ARIA roles used to create tables and grids. It identifies the roles that make up an ARIA table or grid, helping you understand how a custom widget has been structured.
It also displays the current value of the aria-sort attribute where it has been applied to sortable column headers.
Transcript
- Step 1: Start on Intopia's accessibility testing bookmarklets page
- Step 2: Find the "Highlight ARIA table roles" bookmarklet
- Step 3: Drag the bookmarklet to your browser's Bookmarks Bar
- Step 4: Use the test page to review the bookmarklet
- Step 5: Activate the bookmarklet
- Step 6: Use 'n' to cycle through the ARIA roles one at a time
- role="table" or role="grid" is shown in blue
- role="rowgroup" is shown in turquoise
- role="row" is shown in orange
- role="columnheader" is shown in red
- role="rowheader" is shown in purple
- role="cell" or role="cellgrid" is shown in green
- Sortable column headers should be shown as (sort: none)
- If sorting a table while the bookmarklet is active, run the bookmarklet again to refresh the values
- A sorted column will change to (sort: ascending) or (sort: descending)
- Press the "Escape" key to remove the overlay
Use this bookmarklet when you want to:
- inspect tables built using ARIA roles instead of native HTML table elements
- understand the structure of a custom table or grid
- check that the expected ARIA roles have been applied
- review the current
aria-sort values on sortable column headers
How to use it
- Drag a bookmarklet to your browser's Bookmarks Bar.
- Open the page you want to inspect.
- Click the Highlight ARIA table roles bookmarklet.
- Scroll through the page to review the ARIA-based tables.
- Press
n to cycle through table / grid / treegrid, rowgroup, row, columnheader, rowheader and cell / gridcell roles one at a time.
- Press
Esc to remove the overlay.
Note: If you sort a table while the bookmarklet is active, run the bookmarklet again to refresh the displayed aria-sort values.
When reviewing an ARIA table or grid, check for:
- A complete role hierarchy, with all required parent and child roles present.
- Rows, headers and cells that appear in the expected structure.
- Sortable column headers that correctly update their
aria-sort values.
- Consistent use of ARIA roles throughout the table or grid.