Add a row with two data cells.
Acceptance criteria
- 1.Add a row with two data cells.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <td> 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 one data cell in a table row. Every value in a table lives in a — except the labels, which live in . Getting that distinction right is most of what there is to know; the rest is spanning cells across columns and rows.” .
1.Add data cellsexercise · easy · 10 min
Add a row with two data cells.
Passes when: Add a row with two data cells.
2.Span two columnsexercise · easy · 10 min · practice plan
Make a cell span two columns.
Passes when: Make a cell span two columns.
3.Span two rowsexercise · easy · 10 min · practice plan
Make a cell span two rows.
Passes when: Make a cell span two rows.
4.An empty cellexercise · easy · 10 min · practice plan
Leave one cell deliberately empty.
Passes when: Leave one cell deliberately empty.
5.A totals rowexercise · medium · 10 min · practice plan
Add a data row and a totals row that spans two columns.
Passes when: Add a data row and a totals row that spans two columns.
6.Fix the missing second cellbug fix · easy · 8 min
The row needs both values.
Passes when: The row needs both values.
7.Fix the wrong span attributebug fix · easy · 8 min · practice plan
Cells span columns with colspan.
Passes when: Cells span columns with colspan.
8.Fix the column span used for rowsbug fix · easy · 8 min · practice plan
Spanning downwards is rowspan.
Passes when: Spanning downwards is rowspan.
9.Fix the header cell used for databug fix · easy · 8 min · practice plan
A value is a data cell, not a header.
Passes when: A value is a data cell, not a header.
10.Fix the totals row that does not spanbug fix · easy · 8 min · practice plan
The totals cell should stretch across both columns.
Passes when: The totals cell should stretch across both columns.
Between them these tasks cover Data cells, colspan and rowspan.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.