Table Styling & Borders — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Table Styling & Borders lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Mark a row header scope
easy10 minAdd scope="col" to the header cell.
- 2
Mark a row-scope header
easy10 minAdd a th with scope="row".
- 3
Add a styled table class
easy10 minGive the table the class "striped".
- 4
Group columns
easy10 minAdd a colgroup with one col element.
- 5
Add a footer row
medium10 minUse tfoot for a totals row.
Find the bug(5)
- 1
Fix the missing scope
easy8 minHeader cells need a scope so screen readers can associate them.
- 2
Fix the wrong scope value
easy8 minA column header should use col, not column.
- 3
Fix the deprecated border attribute
easy8 minUse a class and CSS instead of the border attribute.
- 4
Fix the missing column group
easy8 minThe table has no colgroup at all.
- 5
Fix the footer marked as a body
easy8 minThe totals row should sit in tfoot.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace