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.
A route notes snippet that displays comparison operators, a copyright symbol, an ampersand, and a non-breaking distance label — all as visible text using HTML entities.
The starter supplies the document and heading; add four short route notes below it.
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>
Without < and >, the browser could mistake your comparison for a tag. & 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.©, for example © City Walking Club. All rights reserved.& to display a literal & (e.g., HTML & CSS). to prevent a line break between two words.The route notes can now show their symbols and short phrases exactly as visitors should read them.
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 &.