HTML Entities & Symbols — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the HTML Entities & Symbols lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Escape a less-than sign
easy10 minShow a literal < character using an entity.
- 2
Show an ampersand
easy10 minDisplay "Tom & Jerry" using an entity.
- 3
Add a non-breaking space
easy10 minKeep "10 kg" together with a non-breaking space.
- 4
Show a copyright symbol
easy10 minDisplay the © symbol using an entity.
- 5
Show a quotation mark
medium10 minDisplay a literal double quote using an entity.
Find the bug(5)
- 1
Fix the raw angle brackets
easy8 minThe tag is parsed as markup instead of shown as text.
- 2
Fix the invented entity name
easy8 minThere is no &erand; entity, so it renders literally.
- 3
Fix the wrong entity name
easy8 minThe copyright entity is ©, not &cpy;.
- 4
Fix the unescaped ampersand
easy8 minA bare & should be written as &.
- 5
Fix the wrong quote entity
easy8 minA double quote is ".
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace