When writing web pages in HTML, it soon becomes useful to know how to produce unusual characters (such as é or ü or ).
The trick here is to use a specific tag that tells the browser you are inserting a special character. This tag consists of the & character followed by a character name and a semicolon (such as: é for é).
There are plenty of references describing the code for each special character, and many are easy to remember. Yet theres also another way of producing the same characters and then some! This alternate method is similar because it uses an & prefix and a ; suffix, but here the code for the character is a number from one to 255. These numbers are the ASCII character numbers, and they are pretty much universal across the globe. This system allows you to code for special characters that may be missing from the HTML name encoding system. (In fact, its possible to code every letter of text in a web page using these number codes, but who would bother?)
Take for example, the idea of curly quotes. Most
WYSIWYG HTML editors
produce straight quotes, and for the most part,
thats all one sees on the
web. However, using the code “
and ”, we can
produce curly quotes (just like all
professional typesetters
use).
Following is a table of HTML special character codes. (For an interactive code translator, try The Character Coder...)
desired character | number codes | name codes |
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
	 | ||
| ||
 | ||
 | ||
| ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
  | ||
! | ! | |
" | " | " |
# | # | |
$ | $ | |
% | % | |
& | & | & |
' | ' | |
( | ( | |
) | ) | |
* | * | |
+ | + | |
, | , | |
- | - | |
. | . | |
/ | / | |
0 | 0 | |
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | |
: | : | |
; | ; | |
< | < | < |
= | = | |
> | > | > |
? | ? | |
@ | @ | |
A | A | |
B | B | |
C | C | |
D | D | |
E | E | |
F | F | |
G | G | |
H | H | |
I | I | |
J | J | |
K | K | |
L | L | |
M | M | |
N | N | |
O | O | |
P | P | |
Q | Q | |
R | R | |
S | S | |
T | T | |
U | U | |
V | V | |
W | W | |
X | X | |
Y | Y | |
Z | Z | |
[ | [ | |
\ | \ | |
] | ] | |
^ | ^ | |
_ | _ | |
` | ` | |
a | a | |
b | b | |
c | c | |
d | d | |
e | e | |
f | f | |
g | g | |
h | h | |
i | i | |
j | j | |
k | k | |
l | l | |
m | m | |
n | n | |
o | o | |
p | p | |
q | q | |
r | r | |
s | s | |
t | t | |
u | u | |
v | v | |
w | w | |
x | x | |
y | y | |
z | z | |
{ | { | |
| | | | |
} | } | |
~ | ~ | |
|  | |
| € | |
|  | |
| ‚ | |
| ƒ | |
| „ | |
… | ||
| † | |
| ‡ | |
| ˆ | |
| ‰ | |
| Š | |
| ‹ | |
| Œ | |
|  | |
| Ž | |
|  | |
|  | |
| ‘ | |
| ’ | |
| “ | |
| ” | |
| • | |
| – | |
| — | |
| ˜ | |
| ™ | |
| š | |
| › | |
| œ | |
|  | |
| ž | |
| Ÿ | |
  | ||
¡ | ¡ | |
¢ | ¢ | ¢ |
£ | £ | £ |
¤ | ¤ | |
¥ | ¥ | |
¦ | ¦ | ¦ or &brkbar; |
§ | § | § |
¨ | ¨ | ® (??) |
© | © | © |
ª | ª | |
« | « | |
¬ | ¬ | |
| ­ | |
® | ® | ® |
¯ | ¯ | |
° | ° | ° |
± | ± | ± |
² | ² | ² |
³ | ³ | ³ |
´ | ´ | |
µ | µ | |
¶ | ¶ | |
· | · | · |
¸ | ¸ | |
¹ | ¹ | ¹ |
º | º | |
» | » | |
¼ | ¼ | ¼ |
½ | ½ | ½ |
¾ | ¾ | ¾ |
¿ | ¿ | |
À | À | À |
Á | Á | Á |
 |  |  |
à | à | à |
Ä | Ä | Ä |
Å | Å | Å |
Æ | Æ | Æ |
Ç | Ç | Ç |
È | È | È |
É | É | É |
Ê | Ê | Ê |
Ë | Ë | Ë |
Ì | Ì | Ì |
Í | Í | Í |
Î | Î | Î |
Ï | Ï | Ï |
Ð | Ð | |
Ñ | Ñ | Ñ |
Ò | Ò | Ò |
Ó | Ó | Ó |
Ô | Ô | Ô |
Õ | Õ | Õ |
Ö | Ö | Ö |
× | × | |
Ø | Ø | Ø |
Ù | Ù | Ù |
Ú | Ú | Ú |
Û | Û | Û |
Ü | Ü | Ü |
Ý | Ý | Ý |
Þ | Þ | Þ |
ß | ß | ß |
à | à | à |
á | á | á |
â | â | â |
ã | ã | ã |
ä | ä | ä |
å | å | å |
æ | æ | æ |
ç | ç | ç |
è | è | è |
é | é | é |
ê | ê | ê |
ë | ë | ë |
ì | ì | ì |
í | í | í |
î | î | î |
ï | ï | ï |
ð | ð | ð |
ñ | ñ | ñ |
ò | ò | ò |
ó | ó | ó |
ô | ô | ô |
õ | õ | õ |
ö | ö | ö |
÷ | ÷ | |
ø | ø | ø |
ù | ù | ù |
ú | ú | ú |
û | û | û |
ü | ü | ü |
ý | ý | ý |
þ | þ | þ |
ÿ | ÿ | ÿ |
PLEASE NOTE: that some of the name codes may not work the same across all systems (see especially the code for the registered character, number 168). Also, some of these characters may appear different for keyboards that are mapped-out differently than yours. Therefore, use these codes at your own risk. Most of them (especially the vowels with diacritical markings) are standardized, so try the ones you really need on a few different machines. Youll quickly learn which ones work best for your web pages.
© Ostwald Enterprises, 1998--all rights reserved.