Common Special Characters
suggest changeSome characters are reserved in HTML and cannot be used directly, because they would be parsed as markup. For example, typing the angle brackets (<>) in text can be read as a tag. Whitespace in the source is also collapsed in normal HTML. Some characters, like ☎, are not in ASCII.
For this purpose, character entities are created. These are of the form &entity_name; or &entity_number;. The following are some of the available HTML entities.
| Character | Description | Entity name | Entity number |
|---|---|---|---|
| non-breaking space | non-breaking space | |
  |
< |
less than | < |
< |
> |
greater than | > |
> |
& |
ampersand | & |
& |
| — | em dash | — |
— |
| – | en dash | – |
– |
| © | copyright | © |
© |
| ® | registered trademark | ® |
® |
| ™ | trademark | ™ |
™ |
| ☎ | telephone | none (not a named character reference) | ☎ |
Thus, to write
© 2016 Stack Exchange Inc.
the following HTML code is used:
<b>© 2016 Stack Exchange Inc.</b>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents