How to display special characters.


Special Characters in HTML

This is a fairly complete table of the use of special characters in HTML. They are needed because the 8 bit codes for special characters are different on different platforms. In this table you will find the character, the numerical code (something like  ), the HTML code (if any), the hexadecimal code and comments.

The numerical code and the HTML code can both be used in HTML documents. It does not make any difference which one you use. The hexadecimal code is not used in HTML documents but you will see it in forms that are returned from Web pages and at other occasions.

Unfortunately, not all characters display the same on Macintosh and Windows machines, simply because the standard character sets are slightly different (see notes in the end). I suggest you avoid these characters.

 

Character Code HTML Hex Comment
™
"
trademark
"
"
"
%22
Quotes
&
&
&
%26
Ampersand
<
&#60;
&lt;
%3C
Less than sign
>
&#62;
&gt;
%3E
Greater than sign
 
&#160;
&nbsp;
%A0
Non-breaking space
¡
&#161;
-
%A1
Upsidedown ! (used in Spanish)
¢
&#162;
-
%A2
-
£
&#163;
-
%A3
Pound sign
¤
&#164;
-
%A4
-
¥
&#165;
-
%A5
Yen sign
¦
&#166;
-
%A6
See note 1
§
&#167;
-
%A7
Paragraph sign
¨
&#168;
-
%A8
Umlaut
©
&#169;
&copy;
%A9
Not in all browsers
ª
&#170;
-
%AA
Supersript a
«
&#171;
-
%AB
-
¬
&#172;
-
%AC
-
­
&#173;
-
%AD
-
®
&#174;
&reg;
%AE
Not in all browsers
¯
&#175;
-
%AF
-
°
&#176;
-
%B0
Degree sign
±
&#177;
-
%B1
Plus-Minus sign
²
&#178;
-
%B2
See note 2
³
&#179;
-
%B3
See note 2
´
&#180;
-
%B4
-
µ
&#181;
-
%B5
Micro sign
&#182;
-
%B6
-
·
&#183;
-
%B7
-
¸
&#184;
-
%B8
-
¹
&#185;
-
%B9
See note 3
º
&#186;
-
%BA
-
»
&#187;
-
%BB
-
¼
&#188;
-
%BC
See note 4
½
&#189;
-
%BD
See note 4
¾
&#190;
-
%BE
See note 4
¿
&#191;
-
%BF
Upsidedown ? (used in Spanish)
À
&#192;
&Agrave;
%C0
-
Á
&#193;
&Aacute;
%C1
-
Â
&#194;
&Acirc;
%C2
-
Ã
&#195;
&Atilde;
%C3
-
Ä
&#196;
&Auml;
%C4
-
Å
&#197;
&Aring;
%C5
-
Æ
&#198;
&AElig;
%C6
-
Ç
&#199;
&Ccedil;
%C7
-
È
&#200;
&Egrave;
%C8
-
É
&#201;
&Eacute;
%C9
-
Ê
&#202;
&Ecirc;
%CA
-
Ë
&#203;
&Euml;
%CB
-
Ì
&#204;
&Igrave;
%CC
-
Í
&#205;
&Iacute;
%CD
-
Î
&#206;
&Icirc;
%CE
-
Ï
&#207;
&Iuml;
%CF
-
Ð
&#208;
-
%D0
-
Ñ
&#209;
&Ntilde;
%D1
-
Ò
&#210;
&Ograve;
%D2
-
Ó
&#211;
&Oacute;
%D3
-
Ô
&#212;
&Ocirc;
%D4
-
Õ
&#213;
&Otilde;
%D5
-
Ö
&#214;
&Ouml;
%D6
-
×
&#215;
-
%D7
See note 5
Ø
&#216;
&Oslash;
%D8
-
Ù
&#217;
&Ugrave;
%D9
-
Ú
&#218;
&Uacute;
%DA
-
Û
&#219;
&Ucirc;
%DB
-
Ü
&#220;
&Uuml;
%DC
-
Ý
&#221;
&Yacute;
%DD
Not on Macintosh
Þ
&#222;
&THORN;
%DE
-
ß
&#223;
&szlig;
%DF
-
à
&#224;
&agrave;
%E0
-
á
&#225;
&aacute;
%E1
-
â
&#226;
&acirc;
%E2
-
ã
&#227;
&atilde;
%E3
-
ä
&#228;
&auml;
%E4
-
å
&#229;
&aring;
%E5
-
æ
&#230;
&aelig;
%E6
-
ç
&#231;
&ccedil;
%E7
-
è
&#232;
&egrave;
%E8
-
é
&#233;
&eacute;
%E9
-
ê
&#234;
&ecirc;
%EA
-
ë
&#235;
&euml;
%EB
-
ì
&#236;
&igrave;
%EC
-
í
&#237;
&iacute;
%ED
-
î
&#238;
&icirc;
%EE
-
ï
&#239;
&iuml;
%EF
-
ð
&#240;
&eth;
%F0
-
ñ
&#241;
&ntilde;
%F1
-
ò
&#242;
&ograve;
%F2
-
ó
&#243;
&oacute;
%F3
-
ô
&#244;
&ocirc;
%F4
-
õ
&#245;
&otilde;
%F5
-
ö
&#246;
&ouml;
%F6
-
÷
&#247;
-
%F7
-
ø
&#248;
&oslash;
%F8
-
ù
&#249;
&ugrave;
%F9
-
ú
&#250;
&uacute;
%FA
-
û
&#251;
&ucirc;
%FB
-
ü
&#252;
&uuml;
%FC
-
ý
&#253;
&yacute;
%FD
-
þ
&#254;
&thorn;
%FE
-
ÿ
&#255;
&yuml;
%FF
-

 

I have done my best to ensure that this table is accurate. If you discover any mistakes or problems, please let me know and I will correct it. Thanks in advance for your help.


Note 1: &#166; displays a broken vertical bar on Windows machines and an oe dipthong on Macs.

 

Note 2: &#178; and &#179; are used on the Macintosh for double curly quotes. Under windows they display superscript 2 and 3 respectively.

 

Note 3: &#185; displays a superscript one under Windows and a single curly quote on Macintosh.

 

Note 4: &#188;, &#189; and &#190; display fraction one-fourth, one-half and three-fourths respectively under Windows. On a Macintosh they show lowercase pi, uppercase pi and smaller-than-or-equal sign.

 

Note 5: &#215; displays a diamond on Macintosh and a multiply sign under windows.