Put a heading and its subtitle in an hgroup.
Acceptance criteria
- 1.Put a heading and its subtitle in an hgroup.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <hgroup> 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: “Learn how the HTML <hgroup> tag groups a heading with a subheading, alternative title, or tagline.” Read the chapter.
1.Group a title and subtitleexercise · easy · 10 min
Put a heading and its subtitle in an hgroup.
Passes when: Put a heading and its subtitle in an hgroup.
2.A section heading groupexercise · easy · 10 min · practice plan
Group an h2 with its tagline.
Passes when: Group an h2 with its tagline.
3.Heading group inside a headerexercise · easy · 10 min · practice plan
Put the hgroup inside the page header.
Passes when: Put the hgroup inside the page header.
4.Heading group in an articleexercise · easy · 10 min · practice plan
Group an article's title and standfirst.
Passes when: Group an article's title and standfirst.
5.A titled page headerexercise · medium · 10 min · practice plan
Build a header with a grouped title and subtitle.
Passes when: Build a header with a grouped title and subtitle.
6.Fix the subtitle as a second headingbug fix · easy · 8 min
A subtitle is not another heading level.
Passes when: A subtitle is not another heading level.
7.Fix the ungrouped taglinebug fix · easy · 8 min · practice plan
The tagline belongs with its heading.
Passes when: The tagline belongs with its heading.
8.Fix the group outside the headerbug fix · easy · 8 min · practice plan
The title block belongs inside the header.
Passes when: The title block belongs inside the header.
9.Fix the div used to group headingsbug fix · easy · 8 min · practice plan
There is an element for this.
Passes when: There is an element for this.
10.Fix the missing subtitlebug fix · easy · 8 min · practice plan
The group has a title but no tagline.
Passes when: The group has a title but no tagline.
Between them these tasks cover Heading groups, Subtitles and Outline.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.