Put two data rows inside a tbody.
Acceptance criteria
- 1.Put two data rows inside a tbody.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <tbody> 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 is used to group the main content rows (body) of a table. It separates the table’s data section from the header ( ) and footer ( ), helping improve structure, readability, and performance for large datasets.” .
1.Group the data rowsexercise · easy · 10 min
Put two data rows inside a tbody.
Passes when: Put two data rows inside a tbody.
2.Body after headexercise · easy · 10 min · practice plan
Add a tbody below the thead.
Passes when: Add a tbody below the thead.
3.Two body groupsexercise · easy · 10 min · practice plan
Split the data into two tbody groups.
Passes when: Split the data into two tbody groups.
4.Body cellsexercise · easy · 10 min · practice plan
Put two cells in a single body row.
Passes when: Put two cells in a single body row.
5.A full grouped tableexercise · medium · 10 min · practice plan
Build a table with head, body and three data rows.
Passes when: Build a table with head, body and three data rows.
6.Fix the data rows left in the headbug fix · easy · 8 min
Only headings belong in the head; move the people to the body.
Passes when: Only headings belong in the head; move the people to the body.
7.Fix the data placed in the headbug fix · easy · 8 min · practice plan
Only header rows go in the thead.
Passes when: Only header rows go in the thead.
8.Fix the missing second groupbug fix · easy · 8 min · practice plan
The two sets of rows should be separate groups.
Passes when: The two sets of rows should be separate groups.
9.Fix the missing second cellbug fix · easy · 8 min · practice plan
The body row should hold both values.
Passes when: The body row should hold both values.
10.Fix the missing third rowbug fix · easy · 8 min · practice plan
One person is missing from the body.
Passes when: One person is missing from the body.
Between them these tasks cover Body group, Row grouping and Long tables.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.