HTML Entities

So... if an HTML element, such as <html> </html> will be read by the browser and not shown on the webpage, how did I just get that element to show up on the webpage?!

There are five "reserved characters" in HTML. They are: " ' & < >. Despite being reserved for HTML, these characters can be made visible in a browser using HTML entities.

HTML entities represent symbols, or characters, such as those that you see on your keyboard, as well as many that are not included on your keyboard, such as the copyright © symbol. Each entity is identified by a short, unique code beginning with an ampersand & and ending with a semicolon ; with the entity name in between.

ASCII characters are the standard 128 characters used in languages and by computers and other devices, consisting of the numbers 0-9, the uppercase and lowercase English alphabet, and other standard English punctuation and characters. There are HTML entities for each ASCII character, and for hundreds of other printable characters. I will list a few of the most common ones here.

HTML Entities

Symbol Description Numerical Code Name Code
  space &#32; &nbsp;
! exclamation mark &#33;  
" quotation mark &#34; &quot;
# number sign &#35;  
$ dollar sign &#36;  
% percent sign &#37;  
& ampersand &#38;  
' apostrophe &#39;  
( left parenthesis &#40;  
) right parenthesis &#41;  
* asterisk &#42;  
+ plus sign &#43;  
, comma &#44;  
- hyphen &#45;  
. period &#46;  
/ slash &#47;  
0 digit 0 &#48;  
1 digit 1 &#49;  
2 digit 2 &#50;  
3 digit 3 &#51;  
4 digit 4 &#52;  
5 digit 5 &#53;  
6 digit 6 &#54;  
7 digit 7 &#55;  
8 digit 8 &#56;  
9 digit 9 &#57;  
: colon &#58;  
; semicolon &#59;  
< less-than &#60; &lt;
= equals-to &#61;  
> greater-than &#62; &gt;
? question mark &#63;  
@ at sign &#64;  
A uppercase A &#65;  
B uppercase B &#66;  
C uppercase C &#67;  
D uppercase D &#68;  
E uppercase E &#69;  
F uppercase F &#70;  
G uppercase G &#71;  
H uppercase H &#72;  
I uppercase I &#73;  
J uppercase J &#74;  
K uppercase K &#75;  
L uppercase L &#76;  
M uppercase M &#77;  
N uppercase N &#78;  
O uppercase O &#79;  
P uppercase P &#80;  
Q uppercase Q &#81;  
R uppercase R &#82;  
S uppercase S &#83;  
T uppercase T &#84;  
U uppercase U &#85;  
V uppercase V &#86;  
W uppercase W &#87;  
X uppercase X &#88;  
Y uppercase Y &#89;  
Z uppercase Z &#90;  
[ left square bracket &#91;  
\ backslash &#92;  
] right square bracket &#93;  
^ caret &#94;  
_ underscore &#95;  
` grave accent &#96;  
a lowercase a &#97;  
b lowercase b &#98;  
c lowercase c &#99;  
d lowercase d &#100;  
e lowercase e &#101;  
f lowercase f &#102;  
g lowercase g &#103;  
h lowercase h &#104;  
i lowercase i &#105;  
j lowercase j &#106;  
k lowercase k &#107;  
l lowercase l &#108;  
m lowercase m &#109;  
n lowercase n &#110;  
o lowercase o &#111;  
p lowercase p &#112;  
q lowercase q &#113;  
r lowercase r &#114;  
s lowercase s &#115;  
t lowercase t &#116;  
u lowercase u &#117;  
v lowercase v &#118;  
w lowercase w &#119;  
x lowercase x &#120;  
y lowercase y &#121;  
z lowercase z &#122;  
{ left curly brace &#123;  
| vertical bar &#124;  
} right curly brace &#125;  
~ tilde &#126; &sim;
¡ Inverted Exclamation &#161; &iexcl;
¢ Cent &#162; &cent;
£ English Pound &#163; &pound;
¤ Currency &#164; &curren;
¥ Yen &#165; &yen;
¦ Broken Vertical Bar &#166; &brvbar;
§ Section &#167; &sect;
¨ Double Dot &#168; &uml;
© Copyright &#169; &copy;
ª Feminine Ordinal Indicator &#170; &ordf;
« Left Angle Quotation Mark &#171; &laquo;
» Right Angle Quotation Mark &#187; &raquo;
¬ Negation &#172; &not;
® Registered Trademark &#174; &reg;
¯ Spacing Macron &#175; &macr;
° Degree(s) &#176; &deg;
± Plus or Minus &#177; &plusmn;
² Superscript 2 &#178; &sup2;
³ Superscript 3 &#179; &sup3;
´ Spacing Acute &#180; &acute;
µ Micro &#181; &micro;
Paragraph &#182; &para;
· Middle Dot &#183; &middot;
¸ Spacing Cedilla &#184; &cedil;
¹ Superscript 1 &#185; &sup1;
º Masculine Ordinal Indicator &#186; &ordm;
¼ ¼ Fraction &#188; &frac14;
½ ½ Fraction &#189; &frac12;
¾ ¾ Fraction &#190; &frac34;
¿ Inverted Question Mark &#191; &iquest;
À Grave Accent-Captial A &#192; &Agrave;
Á Acute Accent-Capital A &#193; &Aacute;
 Circumflex Accent-Capital A &#194; &Acirc;
à Tilde-Capital A &#195; &Atilde;
Ä Umlaut Mark-Capital A &#196; &Auml;
Å Ring-Capital A &#197; &Aring;
Æ Capital ae &#198; &AElig;
Ç Cedilla-Capital C &#199; &Ccedil;
È Grave Accent-Capital E &#200; &Egrave;
É Acute Accent-Capital E &#201; &Eacute;
Ê Circumflex Accent-Capital E &#202; &Ecirc;
Ë Umlaut Mark-Capital E &#203;  
Ì Grave Accent-Capital I &#204; &Igrave;
Í Acute Accent-Capital I &#205; &Iacute;
Î Circumflex Accent-Capital I &#206; &Icirc;
Ï Umlaut Mark-Capital I &#207; &Iuml;
Ð Capital eth &#208; &ETH;
Ñ Tilde-Capital N &#209; &Ntilde;
Ò Grave Accent-Capital O &#210; &Ograve;
Ó Acute Accent-Capital O &#211; &Oacute;
Ô Circumflex Accent-Capital O &#212; &Ocirc;
Õ Tilde-Capital O &#213; &Otilde;
Ö Umlaut Mark-Capital O &#214;  
× Multiplication &#215; &times;
Ø Slash-Capital O &#216; &Oslash;
Ù Grave Accent-Capital U &#217; &Ugrave;
Ú Acute Accent-Captital U &#218; &Uacute;
Û Circumflex Accent-Capital U &#219; &Ucirc;
Ü Umlaut Mark-Capital U &#220; &Uuml;
Ý Acute Accent-Capital Y &#221; &Yacute;
Þ Thorn &#222; &THORN;
ß Small Sharp &#223; &szlig;
æ Small ae &#230; &aelig;
ð Small eth &#240; &eth;
ø Slash-Small o &#248; &oslash;
þ Small Thorn &#254; &thorn;
ΠCapital Ligature &#338; &OElig;
œ Small Ligature &#339; &oelig;
ˆ Modifier Circumflex Accent &#710; &circ;
˜ Small Tilde &#732; &tilde;
En Dash &#8211; &ndash;
Em Dash &#8212; &mdash;
Left Single Quote &#8216; &lsquo;
Right Single Quote &#8217; &rsquo;
Single Low Quote &#8218; &sbquo;
Left Double Quote &#8220; &ldquo;
Right Double Quote &#8221; &rdquo;
Double Low Quote &#8222; &bdquo;
Dagger &#8224; &dagger;
Double Dagger &#8225; &Dagger;
Per Mile &#8240; &permil;
Left Single Arrow Quote &#8249; &lsaquo;
Right Single Arrow Quote &#8250; &rsaquo;
Euro Mark &#8364; &euro;
TradeMark &#8482; &trade;