Add a colgroup with one col.
Acceptance criteria
- 1.Add a colgroup with one col.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <col> 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 column properties for each column within a element. It allows you to apply styling, width, or alignment to one or more columns of a table — without repeating the same style on each or individually.” .
1.Describe a columnexercise · easy · 10 min
Add a colgroup with one col.
Passes when: Add a colgroup with one col.
2.Two columnsexercise · easy · 10 min · practice plan
Describe two columns.
Passes when: Describe two columns.
3.Span two columnsexercise · easy · 10 min · practice plan
Let one col cover two columns.
Passes when: Let one col cover two columns.
4.Class a columnexercise · easy · 10 min · practice plan
Give a col a class so CSS can target it.
Passes when: Give a col a class so CSS can target it.
5.A described tableexercise · medium · 10 min · practice plan
Describe two columns, one of them classed.
Passes when: Describe two columns, one of them classed.
6.Fix the empty column groupbug fix · easy · 8 min
The group describes no columns yet.
Passes when: The group describes no columns yet.
7.Fix the missing second columnbug fix · easy · 8 min · practice plan
The table has two columns but one description.
Passes when: The table has two columns but one description.
8.Fix the wrong attribute for spanningbug fix · easy · 8 min · practice plan
A col covers several columns with span.
Passes when: A col covers several columns with span.
9.Fix the class put on the cellbug fix · easy · 8 min · practice plan
Styling a whole column is what col is for.
Passes when: Styling a whole column is what col is for.
10.Fix the missing colgroupbug fix · easy · 8 min · practice plan
The column descriptions have no group.
Passes when: The column descriptions have no group.
Between them these tasks cover Column styling, span attribute and colgroup.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.