Add one row holding two cells.
Acceptance criteria
- 1.Add one row holding two cells.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <tr> 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: “The tag in HTML defines a table row . It is used inside the element to group one or more table cells ( or ) in a single horizontal row.” Read the chapter.
1.Add a rowexercise · easy · 10 min
Add one row holding two cells.
Passes when: Add one row holding two cells.
2.Three rowsexercise · easy · 10 min · practice plan
Write a table with three rows.
Passes when: Write a table with three rows.
3.A header rowexercise · easy · 10 min · practice plan
Add a row of header cells.
Passes when: Add a row of header cells.
4.Rows in a bodyexercise · easy · 10 min · practice plan
Put two rows inside a tbody.
Passes when: Put two rows inside a tbody.
5.Head and body rowsexercise · medium · 10 min · practice plan
One row in the head and two in the body.
Passes when: One row in the head and two in the body.
6.Fix the missing second cellbug fix · easy · 8 min
The row should hold two cells.
Passes when: The row should hold two cells.
7.Fix the missing third rowbug fix · easy · 8 min · practice plan
Only two rows were written.
Passes when: Only two rows were written.
8.Fix the header cells written as databug fix · easy · 8 min · practice plan
A header row uses th.
Passes when: A header row uses th.
9.Fix the totals row left with the databug fix · easy · 8 min · practice plan
A summary row belongs in the table foot.
Passes when: A summary row belongs in the table foot.
10.Fix the missing head rowbug fix · easy · 8 min · practice plan
The table has no header row.
Passes when: The table has no header row.
Between them these tasks cover Table rows and Row grouping.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.