HTML exercise: Special characters — What does the browser show for the text inside <code>?
The exercise
What does the browser show for the text inside <code>?
1<section id="entities">
2 <h2>HTML tip</h2>
3 <p>Type <code>&copy;</code>
4 to display © on a page.</p>
5</section>
Solution
Answer: ©
The HTML parser decodes entities only once, so & turns into a literal & and copy; stays plain text. That lets you display © on screen instead of the © symbol.