Wrap a heading and paragraph in a section.
Acceptance criteria
- 1.Wrap a heading and paragraph in a section.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <section> 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 defines a thematic grouping of content on a webpage. It is used to organize content into sections with a common heading or purpose , such as chapters, tabs, or topic areas. is often used along with headings ( - ) to define logical blocks of content.” .
1.Group a topicexercise · easy · 10 min
Wrap a heading and paragraph in a section.
Passes when: Wrap a heading and paragraph in a section.
2.Two sectionsexercise · easy · 10 min · practice plan
Add two sections, each with its own heading.
Passes when: Add two sections, each with its own heading.
3.Label the sectionexercise · easy · 10 min · practice plan
Give the section an accessible label.
Passes when: Give the section an accessible label.
4.Section inside an articleexercise · easy · 10 min · practice plan
Split an article into a section.
Passes when: Split an article into a section.
5.A page of sectionsexercise · medium · 10 min · practice plan
Build a page with two labelled sections.
Passes when: Build a page with two labelled sections.
6.Fix the div used to group a topicbug fix · easy · 8 min
A themed group with a heading is a section.
Passes when: A themed group with a heading is a section.
7.Fix the two topics in one sectionbug fix · easy · 8 min · practice plan
Separate topics are separate sections.
Passes when: Separate topics are separate sections.
8.Fix the unlabelled sectionbug fix · easy · 8 min · practice plan
A section with no heading needs a label.
Passes when: A section with no heading needs a label.
9.Fix the section outside its articlebug fix · easy · 8 min · practice plan
The part belongs inside the article it splits.
Passes when: The part belongs inside the article it splits.
10.Fix the missing second sectionbug fix · easy · 8 min · practice plan
Only one of the two topics was written.
Passes when: Only one of the two topics was written.
Between them these tasks cover Thematic grouping, Headings and Outline.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.