Common Special Characters

suggest change

Some 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 &nbsp; &#160;
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &#38;
— em dash &mdash; &#8212;
– en dash &ndash; &#8211;
© copyright &copy; &#169;
® registered trademark &reg; &#174;
™ trademark &trade; &#8482;
☎ telephone none (not a named character reference) &#9742;

Thus, to write

© 2016 Stack Exchange Inc.

the following HTML code is used:

<b>&copy; 2016 Stack Exchange Inc.</b>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents