All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Frontend Engineering · HTML & CSS · Hard
HTML & CSS practice: Table Trouble
The plans table is made of divs. On phones it runs off the screen. • A blind customer says her screen reader reads our plans as a soup of numbers. Which…
The problem
- • A blind customer says her screen reader reads our plans as a soup of numbers. Which price is which plan??
- • On my phone the table runs off the right side of the screen.
- Must pass: Plans are a real table.
- Must pass: Column headers are header cells.
- Must pass: No sideways scrolling on a phone (375px).
You'll use: HTML · CSS · Accessibility · Responsive design · Forms
Solve it (expert level)3–6 min · You write HTML & CSS
Show a hint
Rebuild it with <table>: a header row of <th>, then one <tr> per plan with <td> cells.
What this teaches (spoiler)
Tabular data belongs in a real <table>: header cells, row headers and a caption give screen readers the structure for free. Avoid fixed widths so it reflows on phones.