HTML · HTML Tutorial · Lesson 34
HTML Entities
Reserved characters like < > & and non-breaking spaces.
Reserved characters in HTML must be replaced with entities. For example, to display a less-than sign you write <.
| Result | Description | Entity name |
|---|---|---|
| non-breaking space | | |
| < | less than | < |
| > | greater than | > |
| & | ampersand | & |
| " | double quote | " |
| © | copyright | © |
| ® | registered trademark | ® |
Example
<p>5 < 10 && 10 > 5</p>
<p>© 2026 Code Corner</p>
<p>10 km stays together</p>
Tip: Entity names are case sensitive. You can also use numbers, e.g.
< for <.Keep reading “HTML Entities”
Sign up to read the full lesson, try every example in the live editor, and take the 5-question quiz.