HTML-and, by extension, JavaScript-uses the ISO Latin-1 character set. Because many of these characters are difficult or impossible to use with text editors, you can enter them by means of an entity code. Entity codes consist of an ampersand, a pound sign, the decimal representation of the character, and a semicolon. An example of an entity code is 0, which is the entity code for the digit 0.
Entity codes are difficult to use without memorizing a list of
characters and their decimal representations. Fortunately, you
can also enter many characters by using their entity names. An
entity name consists of an ampersand, the character's name, and
a semicolon. An example of an entity name is <, which is
the entity name for the less-than (<) sign. Not all characters
in the ISO Latin-1 character set have entity names. The following
table lists all the ISO Latin-1 characters and their entity codes,
also listing entity names where applicable.
Description | Entity Code | ||
(unused) | � through  | ||
horizontal tab | 	 | ||
line feed | | ||
(unused) |  through  | ||
space |   | ||
exclamation mark | ! | ||
quotation mark | " | ||
number sign | # | ||
dollar sign | $ | ||
percent sign | % | ||
ampersand | & | ||
apostrophe | ' | ||
left parenthesis | ( | ||
right parenthesis | ) | ||
asterisk | * | ||
plus sign | + | ||
comma | , | ||
hyphen | - | ||
period (fullstop) | . | ||
solidus (slash) | / | ||
digits 0 through 9 | 0 through 9 | ||
colon | : | ||
semicolon | ; | ||
less-than sign | < | ||
equal sign | = | ||
greater-than sign | > | ||
question mark | ? | ||
commercial at sign | @ | ||
letters A through Z | A through Z | ||
left square bracket | [ | ||
reverse solidus (backslash) | \ | ||
right square bracket | ] | ||
caret | ^ | ||
horizontal bar | _ | ||
grave accent | ` | ||
letters a through z | a through z | ||
left curly brace | { | ||
vertical bar | | | ||
right curly brace | } | ||
tilde | ~ | ||
|
(unused) |  through Ÿ | |
|
nonbreaking space |   | |
inverted exclamation | ¡ | ||
cent sign | ¢ | ||
pound sterling | £ | ||
general currency sign | ¤ | ||
yen sign | ¥ | ||
broken vertical bar | ¦ | ||
section sign | § | ||
umlaut dieresis | ¨ | ||
copyright | © | ||
feminine ordinal | ª | ||
left angle quote guillemotleft | « | ||
not sign | ¬ | ||
soft hyphen | ­ | ||
registered trademark | ® | ||
macron accent | ¯ | ||
degree sign | ° | ||
plus or minus | ± | ||
superscript 2 | ² | ||
superscript 3 | ³ | ||
acute accent | ´ | ||
micro sign | µ | ||
paragraph sign | ¶ | ||
middle dot | · | ||
cedilla | ¸ | ||
superscript one | ¹ | ||
masculine ordinal | º | ||
right angle quote guillemotright | » | ||
fraction one-fourth | ¼ | ||
fraction one-half | ½ | ||
fraction three-fourths | ¾ | ||
inverted question mark | ¿ | ||
capital A, grave accent | À | ||
capital A, acute accent | Á | ||
capital A, circumflex accent | Â | ||
capital A, tilde | Ã | ||
capital A, dieresis capital A, umlaut mark | Ä | ||
capital A, ring | Å | ||
capital AE diphthong (ligature) | Æ | ||
capital C, cedilla | Ç | ||
capital E, grave accent | È | ||
capital E, acute accent | É | ||
capital E, circumflex accent | Ê | ||
capital E, dieresis capital E, umlaut mark | Ë | ||
capital I, grave accent | Ì | ||
capital I, acute accent | Í | ||
capital I, circumflex accent | Î | ||
capital I, dieresis capital I, umlaut mark | Ï | ||
capital Eth, Icelandic | Ð | ||
capital N, tilde | Ñ | ||
capital O, grave accent | Ò | ||
capital O, acute accent | Ó | ||
capital O, circumflex accent | Ô | ||
capital O, tilde | Õ | ||
capital O, dieresis capital O, umlaut mark | Ö | ||
multiply sign | × | ||
capital O, slash | Ø | ||
capital U, grave accent | Ù | ||
capital U, acute accent | Ú | ||
capital U, circumflex accent | Û | ||
capital U, dieresis capital U, umlaut mark | Ü | ||
capital Y, acute accent | Ý | ||
capital THORN, Icelandic | Þ | ||
small sharp s, German (sz ligature) | ß | ||
small a, grave accent | à | ||
small a, acute accent | á | ||
small a, circumflex accent | â | ||
small a, tilde | ã | ||
small a, dieresis small a, umlaut mark | ä | ||
small a, ring | å | ||
small ae dipthong (ligature) | æ | ||
small c, cedilla | ç | ||
small e, grave accent | è | ||
small e, acute accent | é | ||
small e, circumflex accent | ê | ||
small e, dieresis small e, umlaut mark | ë | ||
small I, grave accent | ì | ||
small I, acute accent | í | ||
small i, circumflex accent | î | ||
small i, dieresis small i, umlaut mark | ï | ||
small eth, Icelandic | ð | ||
small n, tilde | ñ | ||
small o, grave accent | ò | ||
small o, acute accent | ó | ||
small o, circumflex accent | ô | ||
small o, tilde | õ | ||
small o, dieresis small o, umlaut mark | ö | ||
division sign | ÷ | ||
small o, slash | ø | ||
small u, grave accent | ù | ||
small u, acute accent | ú | ||
small u, circumflex accent | û | ||
small u, dieresis small u, umlaut mark | ü | ||
small y, acute accent | ý | ||
small thorn, Icelandic | þ | ||
small y, dieresis small y, umlaut mark | ÿ |