Challenge - 5 Problems
Table Accessibility Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why use in tables?
What is the main purpose of the element in an HTML table for accessibility?
Attempts:
2 left
💡 Hint
Think about how screen readers understand what a table is about.
✗ Incorrect
The
📝 Syntax
intermediate2:00remaining
Correct use of for headers
Which option correctly marks the first row as header cells in a table for accessibility?
HTML
<table> <tr> <td>Product</td> <td>Price</td> </tr> <tr> <td>Apple</td> <td>$1</td> </tr> </table>
Attempts:
2 left
💡 Hint
Headers should use the tag, not . to mark them as headers. This helps screen readers identify column headers.
✗ Incorrect
The first row cells should be
❓ selector
advanced2:00remaining
Selecting header cells for row headers
Which CSS selector correctly styles all row header cells in a table for accessibility?
Attempts:
2 left
💡 Hint
Row headers use with a specific scope attribute.
✗ Incorrect
Row headers are marked with <th scope="row">. Styling these helps visually distinguish row headers.
❓ layout
advanced2:00remaining
Responsive table design for accessibility
Which CSS approach best helps make a wide table accessible on small screens?
Attempts:
2 left
💡 Hint
Think about preserving all data while allowing easy navigation on small screens.
✗ Incorrect
Wrapping the table in a container with overflow-x: auto lets users scroll horizontally, preserving all content and accessibility.
❓ accessibility
expert3:00remaining
Using ARIA roles for complex tables
In a complex data table with merged cells, which ARIA role helps assistive technologies understand the table structure best?
Attempts:
2 left
💡 Hint
This role treats the table like a grid of cells with keyboard navigation support.
✗ Incorrect
The role="grid" indicates a complex interactive table, helping screen readers and keyboard users navigate merged cells properly.