The walking-club route notes need to show a trail rule, a copyright line, and “Maps & Snacks” exactly as written. Some of those characters mean something special to HTML, so use entities to make the browser display the intended text. Your preview should show the symbols, not broken markup.
The starter supplies the document and heading; add four short route notes below it, each in its own <p>. The tests check these paragraphs, not the heading or page scripts.
An entity starts with & and ends with ;. Use it when you need a reserved character to appear as text.
<p>5 < 10</p> <!-- displays: 5 < 10 -->
<p>10 > 5</p> <!-- displays: 10 > 5 -->
<p>Maps & Snacks</p>
A < before a tag name starts markup, so < is the safe way to show it as text. A > in ordinary text does not usually need escaping, but > makes the pair easy to recognize. & displays a literal ampersand.
is a non-breaking space: it keeps the words on either side on the same line. Use it for a unit such as a distance, not to create page layout spacing.
<p>Meet at the 3 km marker.</p>
| Entity | Character | Useful for |
|---|---|---|
< | < | Less-than sign |
> | > | Greater-than sign |
& | & | Ampersand |
" | " | Double quote |
' | ' | Apostrophe / single quote |
| (space) | Non-breaking space |
© | © | Copyright symbol |
— | — | Em dash |
You can also use numeric forms such as < or < for <, but named entities are often easier to read.
Run the page. You should see the comparison signs, copyright symbol, and ampersand as ordinary text. If a line disappears or becomes a tag, inspect each entity for its opening & and closing ;.
5 < 10 and 10 > 5 using entities.©, including the words All rights reserved.& to display a literal ampersand, for example Maps & Snacks. to prevent a line break between two words.Edit index.html, Run to read all four notes, then Submit. The checks see the browser’s parsed text, so they cannot distinguish a typed © from ©. Practise writing the entity even though either produces the same character.
Use < for < and > for > when you want to display them as text (not as tags).
& is the entity for the & character itself.
is a non-breaking space — useful to prevent text from wrapping at a specific point.
Write named entities with the terminating semicolon, such as © or &.