Give the table a caption.
Acceptance criteria
- 1.Give the table a caption.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <caption> Tag chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “is a table's title. It must be the first child of the , it is announced by screen readers as the table's name, and it stays attached to the table when the table scrolls, moves or is copied. A heading placed above the table does none of that.” .
1.Caption a tableexercise · easy · 10 min
Give the table a caption.
Passes when: Give the table a caption.
2.Caption firstexercise · easy · 10 min · practice plan
Put the caption before the rows.
Passes when: Put the caption before the rows.
3.Caption a data tableexercise · easy · 10 min · practice plan
Caption a table that has a header row.
Passes when: Caption a table that has a header row.
4.A descriptive captionexercise · easy · 10 min · practice plan
Write a caption that explains what the table shows.
Passes when: Write a caption that explains what the table shows.
5.Captioned table with head and bodyexercise · medium · 10 min · practice plan
Build a captioned table with a thead and a tbody.
Passes when: Build a captioned table with a thead and a tbody.
6.Fix the heading used as a table titlebug fix · easy · 8 min
A table's own title is a caption.
Passes when: A table's own title is a caption.
7.Fix the caption outside the tablebug fix · easy · 8 min · practice plan
The caption belongs inside the table element.
Passes when: The caption belongs inside the table element.
8.Fix the caption written as a rowbug fix · easy · 8 min · practice plan
A caption is not a table row.
Passes when: A caption is not a table row.
9.Fix the empty captionbug fix · easy · 8 min · practice plan
The caption says nothing about the data.
Passes when: The caption says nothing about the data.
10.Fix the missing captionbug fix · easy · 8 min · practice plan
The table has structure but no name.
Passes when: The table has structure but no name.
Between them these tasks cover Table captions and Naming data.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.