Character Entities

HTML files encode certain characters to avoid confusion with reserved characters that have special meaning to browsers.  In general, a character that is to be encoded is encoded as an ampersand (&) followed by a pound (#) followed by the decimall representation of the ascii code for the character followed by the semicolon (;).  Thus

Some characters can be encoded with their names.  For example, the less-than character, <, may be encoded as &lt; to avoid confusion with the unencoded <, which would signal the beginning of an HTML tag.  The > character is encoded as &gt;  The quote character is coded as &quot;

Here is a table of the most common Character Entities as printed in HTML & XHTML from O'Reilly:


Numeric Entity

Named Entity

Symbol

Description

&#009;

   

Horizontal tab

&#010;

   

Line feed

&#013;

   

Carriage return

&#032;

   

Space

&#033;

 

!

Exclamation point

&#034;

&quot;

"

Quotation mark

&#035;

 

#

Hash mark

&#036;

 

$

Dollar sign

&#037;

 

%

Percent sign

&#038;

&amp;

&

Ampersand

&#039;

 

'

Apostrophe

&#040;

 

(

Left parenthesis

&#041;

 

)

Right parenthesis

&#042;

 

*

Asterisk

&#043;

 

+

Plus sign

&#044;

 

,

Comma

&#045;

 

-

Hyphen

&#046;

 

.

Period

&#047;

 

/

Slash

&#048; - &#057;

 

0-9

Digits 0-9

&#058;

 

:

Colon

&#059;

 

;

Semicolon

&#060;

&lt;

<

Less than

&#061;

 

=

Equals sign

&#062;

&gt;

>

Greater than

&#063;

 

?

Question mark

&#064;

 

@

Commercial at sign

&#065; - &#090;

 

A-Z

Letters A-Z

&#091;

 

[

Left square bracket

&#092;

 

\

Backslash

&#093;

 

]

Right square bracket

&#094;

 

^

Caret

&#095;

 

_

Underscore

&#096;

 

`

Grave accent

&#097; - &#122;

 

a-z

Letters a-z

&#123;

 

{

Left curly brace

&#124;

 

|

Vertical bar

&#125;

 

}

Right curly brace

&#126;

 

~

Tilde

&#130;

 

,

Low left single quote

&#131;

 

Florin

&#132;

 

,,

Low left double quote

&#133;

 

...

Ellipsis

&#134;

 

Figure F

Dagger

&#135;

 

Figure F

Double dagger

&#136;

 

^

Circumflex

&#137;

 

Figure F

Permil

&#138;

   

Capital S, caron

&#139;

 

<

Less than sign

&#140;

 

Figure F

Capital OE ligature

&#142;

   

Capital Z, caron

&#145;

 

`

Left single quote

&#146;

 

'

Right single quote

&#147;

 

"

Left double quote

&#148;

 

"

Right double quote

&#149;

 

Figure F

Bullet

&#150;

 

-

En dash

&#151;

 

--

Em dash

&#152;

 

~

Tilde

&#153;

 

Figure F

Trademark

&#154;

   

Small s, caron

&#155;

 

>

Greater than sign

&#156;

 

Figure F

Small oe ligature

&#158;

   

Small z, caron

&#159;

 

Figure F

Capital Y, umlaut

&#160;

&nbsp;

 

Nonbreaking space

&#161;

&iexcl;

¡

Inverted exclamation point

&#162;

&cent;

¢

Cent sign

&#163;

&pound;

£

Pound sign

&#164;

&curren;

¤

General currency sign

&#165;

&yen;

¥

Yen sign

&#166;

&brvbar;

 

Broken vertical bar

&#167;

&sect;

§

Section sign

&#168;

&uml;

Figure F

Umlaut

&#169;

&copy;

©

Copyright

&#170;

&ordf;

ª

Feminine ordinal

&#171;

&laquo;

«

Left angle quote

&#172;

&not;

¬

Not sign

&#173;

&shy;

-

Soft hyphen

&#174;

&reg;

®

Registered trademark

&#175;

&macr;

¯

Macron accent

&#176;

&deg;

Figure F

Degree sign

&#177;

&plusmn;

 

Plus or minus

&#178;

&sup2;

2

Superscript 2

&#179;

&sup3;

3

Superscript 3

&#180;

&acute;

´

Acute accent

&#181;

&micro;

Figure F

Micro sign (Greek mu)

&#182;

&para;

Paragraph sign

&#183;

&middot;

·

Middle dot

&#184;

&cedil;

Figure F

Cedilla

&#185;

&sup1;

1

Superscript 1

&#186;

&ordm;

Masculine ordinal

&#187;

&raquo;

»

Right angle quote

&#188;

&frac14;

1/4

Fraction one-fourth

&#189;

&frac12;

1/2

Fraction one-half

&#190;

&frac34;

3/4

Fraction three-fourths

&#191;

&iquest;

Capital eth, Icelandic

&#209;

&Ntilde;

Ñ

Capital N, tilde

&#210;

&Ograve;

Ò

Capital O, grave accent

&#211;

&Oacute;

Ó

Capital O, acute accent

&#212;

&Ocirc;

Ô

Capital O, circumflex accent

&#213;

&Otilde;

Õ

Capital O, tilde

&#214;

&Ouml;

Ö

Capital O, umlaut

&#215;

&times;

x

Multiply sign

&#216;

&Oslash;

Ø

Capital O, slash

&#217;

&Ugrave;

Ù

Capital U, grave accent

&#218;

&Uacute;

Ú

Capital U, acute accent

&#219;

&Ucirc;

Û

Capital U, circumflex accent

&#220;

&Uuml;

Ü

Capital U, umlaut

&#221;

&Yacute;

 

Capital Y, acute accent

&#222;

&THORN;

 

Capital thorn, Icelandic

&#223;

&szlig;

ß

Small sz ligature, German

&#224;

&agrave;

à

Small a, grave accent

&#225;

&aacute;

á

Small a, acute accent

&#226;

&acirc;

â

Small a, circumflex accent

&#227;

&atilde;

ã

Small a, tilde

&#228;

&auml;

ä

Small a, umlaut

&#229;

&aring;

å

Small a, ring

&#230;

&aelig;

æ

Small ae ligature

&#231;

&ccedil;

ç

Small c, cedilla

&#232;

&egrave;

è

Small e, grave accent

&#233;

&eacute;

é

Small e, acute accent

&#234;

&ecirc;

ê

Small e, circumflex accent

&#235;

&euml;

ë

Small e, umlaut

&#236;

&igrave;

ì

Small i, grave accent

&#237;

&iacute;

í

Small i, acute accent

&#238;

&icirc;

î

Small i, circumflex accent

&#239;

&iuml;

ï

Small i, umlaut

&#240;

&eth;

 

Small eth, Icelandic

&#241;

&ntilde;

ñ

Small n, tilde

&#242;

&ograve;

ò

Small o, grave accent

&#243;

&oacute;

ó

Small o, acute accent

&#244;

&ocirc;

ô

Small o, circumflex accent

&#245;

&otilde;

õ

Small o, tilde

&#246;

&ouml;

ö

Small o, umlaut

&#247;

&divide;

÷

Division sign

&#248;

&oslash;

ø

Small o, slash

&#249;

&ugrave;

ù

Small u, grave accent

&#250;

&uacute;

ú

Small u, acute accent

&#251;

&ucirc;

û

Small u, circumflex accent

&#252;

&uuml;

ü

Small u, umlaut

&#253;

&yacute;

ý

Small y, acute accent

&#254;

&thorn;

 

Small thorn, Icelandic

&#255;

&yuml;

ÿ

Small y, umlaut