Character Entites

Posted on the 19 January 2014 by Savio Menezes

In HTML there are certain characters that are reserved i.e. they are used to write tags. They shouldn’t be written directly because browser might understand them as tags. Some of these are >, <, &, etc. To use them along with other text character entities are used.

How to write character entities? Character entity is written as &entity_name; or &#entity_nos;
Commonly used character entities

Result Description Entity Name Entity Number

space &nbsp; &#160;

< less than < &#60;

> greater than > &#62;

ampersand &amp; &#38;

£ pound &pound; &#163;

€ euro &euro; &#8364;

© copyright &copy; &#169;

® registered trademark &reg; &#174;

™ trademark &trade; &#8482;

" quotation mark &quot; &#34;

' apostrophe &apos; &#39;

° degree &deg; &#176;

¦ broken vertical bar &brvbar; &#166;

« left angle quotation mark &laquo; &#171;

¬ negation &not; &#172;

± plus-or-minus  &plusmn; &#177;

µ micro &micro; &#181;

» right angle quotation mark &raquo; &#187;

¼ one fourth &frac14; &#188;

½ half &frac12; &#189;

¾ three fourth &frac34; &#190;

× multiplication &times; &#215;

÷ division &divide; &#247;

ˆ modifier letter circumflex accent &circ; &#710;

˜ tilde &tilde; &#732;