Write a table with one row of two cells.
Acceptance criteria
- 1.Write a table with one row of two cells.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <table> 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 — a structured arrangement of data in rows and columns . It serves as the container for all related elements like , , , , , and” .
1.Build a tableexercise · easy · 10 min
Write a table with one row of two cells.
Passes when: Write a table with one row of two cells.
2.Two rowsexercise · easy · 10 min · practice plan
Write a table with two rows.
Passes when: Write a table with two rows.
3.Add a header rowexercise · easy · 10 min · practice plan
Give the table a header row with two headings.
Passes when: Give the table a header row with two headings.
4.Group the bodyexercise · easy · 10 min · practice plan
Wrap the data rows in a table body.
Passes when: Wrap the data rows in a table body.
5.A complete small tableexercise · medium · 10 min · practice plan
Build a table with a head, a body and two data rows.
Passes when: Build a table with a head, a body and two data rows.
6.Fix the divs used as a tablebug fix · easy · 8 min
Tabular data belongs in a table.
Passes when: Tabular data belongs in a table.
7.Fix the cells with no rowbug fix · easy · 8 min · practice plan
Cells must sit inside a row.
Passes when: Cells must sit inside a row.
8.Fix the headings marked as databug fix · easy · 8 min · practice plan
Column names are th, not td.
Passes when: Column names are th, not td.
9.Fix the missing header rowbug fix · easy · 8 min · practice plan
The column has no heading.
Passes when: The column has no heading.
10.Fix the missing second data rowbug fix · easy · 8 min · practice plan
Only one person was listed.
Passes when: Only one person was listed.
Between them these tasks cover Tabular data, Rows and cells and Structure.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.