Home / Learn HTML / HTML Entities and Symbols
HTML Entities and Symbols
Some characters are reserved or missing from the keyboard. Entities let you write them safely.
Definition
An HTML entity is a code that stands for a character. It begins with & and ends with ;. You need entities because some characters have a special job in HTML (like < and &) and others are not on your keyboard (like © or €).
| Character | Entity name | Number |
|---|---|---|
| < | < | < |
| > | > | > |
| & | & | & |
| " | " | " |
| © | © | © |
| € | € | € |
| non breaking space | |   |
The non breaking space stops the browser from breaking a line between two words, for example between 10 and km. It is not a tool for layout.
Theory in plain words
What it is
Entities are codes such as < and © that show special characters.
Why we use it
Characters like < and & have special meaning in HTML. Entities let you show them as text, and add symbols you cannot type.
How it works
The browser replaces the code with the symbol while drawing. The pattern is &name; or &#number;.
Where it is used
- Showing code examples
- Copyright and currency symbols
- Non-breaking space between words
< is the less than sign and > is greater than.
Keeps the number and unit together on one line.
Emoji have number codes. You can also paste emoji directly.
| Symbol | Entity | Number |
|---|---|---|
| < | < | < |
| > | > | > |
| & | & | & |
| " | " | " |
| © | © | © |
| € | € | € |
Quick quiz
1. How do you show < in text?
< is the less than entity.
2. is
It keeps words together.
3. Which shows the copyright symbol?
© gives the copyright sign.
Common questions
How do you show < in text?
<. < is the less than entity.
Which shows the copyright symbol?
©. © gives the copyright sign.