diffsnack
HTML Find the mistake Level 5

HTML exercise: Headings are an outline — Find the bug.

The four mistakes are equal in rank, so they need the same heading level.

The exercise

Find the bug.

1<h3>Mistake 1: Bare letter is minor</h3>
2<h4>Mistake 2: Every "7" is major</h4>
3<h4>Mistake 3: "add9" equals "9"</h4>
4<h4>Mistake 4: Sus is an "add" chord</h4>

Solution

The bug is in line 1.

- <h3>Mistake 1: Bare letter is minor</h3>
+ <h4>Mistake 1: Bare letter is minor</h4>

Mistake 1 uses <h3> while Mistakes 2 to 4 use <h4>, so the outline makes them look like sub-points of Mistake 1. Headings form an outline, so equal items need the same level.

Play this exercise Learn the concept: Headings are an outline