Add the page's top-level heading.
Acceptance criteria
- 1.Add the page's top-level heading.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <h1 to h6> 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: “HTML provides six levels of headings , through , to define content hierarchy and structure.” Read the chapter.
1.Add a main headingexercise · easy · 10 min
Add the page's top-level heading.
Passes when: Add the page's top-level heading.
2.Add a subheadingexercise · easy · 10 min · practice plan
Add an h2 below the main heading.
Passes when: Add an h2 below the main heading.
3.Three levels deepexercise · easy · 10 min · practice plan
Add h1, h2 and h3 in order.
Passes when: Add h1, h2 and h3 in order.
4.Two sectionsexercise · easy · 10 min · practice plan
Add one h1 and two h2 headings.
Passes when: Add one h1 and two h2 headings.
5.A full outlineexercise · medium · 10 min · practice plan
Build an outline with h1, two h2s and one h3.
Passes when: Build an outline with h1, two h2s and one h3.
6.Fix the heading made of bold textbug fix · easy · 8 min
Bold text is not a heading to a screen reader.
Passes when: Bold text is not a heading to a screen reader.
7.Fix the skipped levelbug fix · easy · 8 min · practice plan
A subsection of an h1 should be h2, not h4.
Passes when: A subsection of an h1 should be h2, not h4.
8.Fix the paragraph used as a subheadingbug fix · easy · 8 min · practice plan
Section names belong in heading elements.
Passes when: Section names belong in heading elements.
9.Fix the missing second sectionbug fix · easy · 8 min · practice plan
Only one section heading was written.
Passes when: Only one section heading was written.
10.Fix the two main headingsbug fix · easy · 8 min · practice plan
A page should have one h1; the second belongs a level down.
Passes when: A page should have one h1; the second belongs a level down.
Between them these tasks cover Headings, Document outline and Hierarchy.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.