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:

Transcript

Use this bookmarklet when you want to:

How to use it

  1. Drag a bookmarklet to your browser's Bookmarks Bar.
  2. Open the page you want to inspect.
  3. Click the Highlight captions and headers bookmarklet.
  4. Scroll through the page to review the tables.
  5. Press n to cycle through table, caption and th elements one at a time.
  6. 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:


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

Use this bookmarklet when you want to:

How to use it

  1. Drag a bookmarklet to your browser's Bookmarks Bar.
  2. Open the page you want to inspect.
  3. Click the Highlight table IDs and headers bookmarklet.
  4. Press Tab or n to move through the table cells one at a time.
  5. Review the floating badge for each cell, and observe which header cells are highlighted as you navigate.
  6. Press Esc to remove the overlay.

When reviewing a table, check for:


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

Use this bookmarklet when you want to:

How to use it

  1. Drag a bookmarklet to your browser's Bookmarks Bar.
  2. Open the page you want to inspect.
  3. Click the Highlight ARIA table roles bookmarklet.
  4. Scroll through the page to review the ARIA-based tables.
  5. Press n to cycle through table / grid / treegrid, rowgroup, row, columnheader, rowheader and cell / gridcell roles one at a time.
  6. 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: