HTML Code Cheat Sheet
Section 1 |
| Tag |
Attributes |
Browsers |
Closing tag |
| <!DOCTYPE> |
no attributes |
All |
no |
| <HTML> |
no attributes |
All |
yes |
| <HEAD> |
no attributes |
All |
yes |
| <TITLE> |
no attributes |
All |
yes |
| <META> |
content, http-equiv, name, scheme |
All |
no |
| <STYLE> |
no attributes |
NN4, IE45 |
yes |
| <BODY> |
alink, background, bgcolor, bgproperties, leftmargin, link, text, topmargin, vlink |
All |
yes |
| <P> |
align |
All |
yes |
| <BR> |
clear |
All |
yes |
| <HR> |
align, noshade, size, width |
All |
no |
| <OL> |
compact, start, type |
All |
yes |
| <UL> |
compact, type |
All |
yes |
| <LI> |
type, vlaue |
All |
yes |
| <DT> |
no attributes |
All |
no |
| <DD> |
no attributes |
|
no |
| <ADDRESS> |
no attributes |
All |
yes |
| <BLOCKQUOTES> |
no attributes |
All |
yes |
| <CENTER> |
no attributes |
All |
yes |
| <!-- --> |
no attributes |
All |
yes |
| <COMMENT> |
no attributes |
IE345 |
yes |
| <DIV> |
align |
NN234, IE345 |
yes |
| <PRE> |
width |
All |
yes |
| <B> |
no attributes |
All |
yes |
| <BASEFONT> |
color, face, size |
All |
no |
| <BIG> |
no attributes |
NN234, IE345 |
yes |
| <BLINK> |
no attributes |
NN234 |
yes |
| <CITE> |
no attributes |
All |
yes |
| <CODE> |
no attributes |
All |
yes |
| <DFN> |
no attributes |
|
yes |
| <EM> |
no attributes |
All |
yes |
| <FONT> |
color, face, size |
All |
yes |
| <I> |
no attributes |
All |
yes |
| <KBD> |
no attributes |
NN234, IE245 |
yes |
| <S> |
no attributes |
NN34, IE45 |
yes |
| <STRIKE> |
no attributes |
NN34, IE2345 |
yes |
| <SAMP> |
no attributes |
NN234, IE245 |
yes |
| <SMALL> |
no attributes |
NN234, IE245 |
yes |
| <STRONG> |
no attributes |
All |
yes |
| <SUB> |
no attributes |
NN234, IE345 |
yes |
| <SUP> |
no attributes |
NN234, IE345 |
yes |
| <TT> |
no attributes |
All |
yes |
| <U> |
no attributes |
All |
yes |
| <IMG> |
align, alt, border, height, hspace, ismap, src, usemap, vspace, width, dynsrc, start, controls, loop, loopdelay |
All |
no |
| <A> |
href, name, target, title, method, rel, rev, urn |
All |
yes |
| <MAP> |
name |
All |
yes |
| <AREA> |
shape, coords, href, nohref |
All |
|
| <FORM> |
action, enctype, method |
All |
yes |
| <INPUT> |
type, name, value, align, checked, maxlength, size, src |
All |
yes |
| <SELECT> |
name, multiple, size |
All |
yes |
| <OPTION> |
selected, value |
All |
yes |
| <TABLE> |
align, background, bgcolor, border, bordercolor, bordercolorlight, bordercolordark, cellspacing, cellpadding, cols, frame, height, rules, style, width |
All |
yes |
| <TR> |
align, valign, backgroundcolor, bgcolor, bordercolor, bordercolorlight, bordercolordark, height, style |
All |
yes |
| <TD> |
align, colspan, rowspan, nowrap, background, bgcolor, brodercolor, bordercolorlight, bordercolordark, height, width, style, valign |
All |
yes |
| <CAPTION> |
align, valign |
All |
yes |
| <FRAMESET> |
cols, rows, frameborder, framespacing, bordercolor |
NN234, IE345 |
yes |
| <FRAME> |
frameborder, framespacing, marginwidth, marginheight, name, noresize, scrolling, src, bordercolor |
NN234, IE345 |
no |
| <NOFRAMES> |
no attributes |
NN234, IE345 |
yes |
| <IFRAME> |
width, height, hspace, vspace, align, frameborder, marginheight, marginwidth, noresize |
IE345 |
yes |
| <BGSOUND> |
src, loop |
IE2345 |
no |
| <MARQUEE> |
align, behavior, bgcolor, direction, height, hspace, loop, scrollamount, scrolldelay, vspace, width |
IE2345 |
yes |
| <EMBED> |
src, width, height, border, hspace, vspace, align, name, units |
NN234, IE345 |
yes |
| <DEL> |
no attributes |
IE45 |
yes |
| <INS> |
no attributes |
IE45 |
yes |
| <Q> |
cite |
IE45 |
yes |
| <BASE> |
href, target, |
All |
no |
| <LINK> |
href, methods, rev, rel, title, type, urn |
NN4, IE2345 |
no |
| <ABBR> |
title |
None |
yes |
| <ACRONYM> |
title |
None |
yes |
| <SPAN> |
no attributes |
NN4, IE45 |
yes |
| <VAR> |
no attributes |
All |
yes |
| <MULTICOL> |
cols, gutter, width |
NN234 |
yes |
| <NOBR> |
no attributes |
All |
yes |
| <WBR> |
no attributes |
All |
no |
| <DIR> |
no attributes |
All |
yes |
| <DL> |
compact |
All |
yes |
| <MENU> |
compact, type |
All |
yes |
| <APPLET> |
align, alt, code, codebase, height, hspace, name, vspace, width |
NN234, IE345 |
yes |
| <NOEMBED> |
no attributes |
NN234 |
yes |
| <NOSCRIPT> |
no attributes |
NN34, IE345 |
yes |
| <OBJECT> |
align, border, classid, codebase, data, height, hspace, name, type, uesmap, vspace, width |
All |
yes |
| <PARAM> |
name, value, type |
NN234, IE345 |
yes |
| <SCRIPT> |
type, language, src |
NN34, IE345 |
yes |
| <SPACER> |
type, size, height, width, align |
NN34 |
no |
| <COL> |
align, char, charoff, span, valign, width |
IE45 |
no |
| <COLGROUP> |
align, char, charoff, span, valign, width |
IE45 |
yes |
| <TBODY> |
align, char, charoff, valign |
IE45 |
yes |
| <TFOOT> |
align, char, charoff, valign |
IE45 |
yes |
| <TH> |
align, colspan, rowspan, nowrap, background, bgcolor, brodercolor, bordercolorlight, bordercolordark, height, width, style, valign |
All |
yes |
| <THEAD> |
align, char, charoff, valign |
IE45 |
yes |
| <BUTTON> |
name, value, type |
NN4, IE45 |
yes |
| <FIELDSET> |
no attributes |
IE45 |
Yes |
| <ISINDEX> |
no attributes |
All |
no |
| <LABEL> |
no attributes |
IE45 |
yes |
| <LEGEND> |
no attributes |
IE45 |
yes |
| <OPTGROUP> |
no attributes |
None |
yes |
| <TEXTAREA> |
cols, name, rows, wrap |
All |
yes |
Section 2 |
| Name |
Symbol |
Alpha Code |
Numerical Code |
| exclaimation mark |
! |
! |
! |
| double quotes |
" |
" |
" |
| number sign |
# |
# |
# |
| dollar sign |
$ |
$ |
$ |
| percent sign |
% |
% |
% |
| ampersand |
& |
& |
& |
| apostrophe |
' |
' |
' |
| left parenthesis |
( |
( |
( |
| right parenthesis |
) |
) |
) |
| asterisk |
* |
* |
* |
| plus sign |
+ |
+ |
+ |
| comma |
, |
, |
, |
| minus or hyphen |
- |
− or ‐ |
- |
| period |
. |
. |
. |
| slash |
/ |
/ |
/ |
| colon |
: |
: |
: |
| semicolon |
; |
; |
; |
| less than |
< |
< |
< |
| equals sign |
= |
= |
= |
| greater than |
> |
> |
> |
| question mark |
? |
? |
? |
| at sign |
@ |
@ |
@ |
| left square bracket |
[ |
[ |
[ |
| backslash |
\ |
\ |
\ |
| right square bracket |
] |
] |
] |
| caret |
^ |
ˆ |
^ |
| underscore |
_ |
_ |
_ |
| acute accent |
` |
` |
` |
| left curly brace |
{ |
{ |
{ |
| vertical bar |
| |
| |
| |
| right curly brace |
} |
} |
} |
| tilde |
~ |
˜ |
~ |
| low horizontal ellipsis |
|
… |
… |
| dagger mark |
|
† |
† |
| double dagger mark |
|
‡ |
‡ |
| left single quote |
|
‘ |
‘ |
| right single quote |
|
’ |
’ |
| left double quote |
|
“ |
“ |
| right double quote |
|
” |
” |
| round filled bullet |
|
• |
• |
| en dash |
|
– |
– |
| em dash |
|
— |
— |
| trademark |
|
™ |
™ |
| non-breaking space |
|
|
  |
| inverted exclamation |
¡ |
¡ |
¡ |
| cent sign |
¢ |
¢ |
¢ |
| broken vertical bar |
¦ |
¦ |
¦ |
| section sign |
§ |
§ |
§ |
| umlaut |
¨ |
¨ |
¨ |
| copyright symbol |
© |
© |
© |
| left angle quote |
« |
« |
« |
| not sign |
¬ |
¬ |
¬ |
| registered trademark |
® |
® |
® |
| degree sign |
° |
° |
° |
| plus or minus |
± |
± |
± |
| superscript two |
² |
² |
² |
| superscript three |
³ |
³ |
³ |
| acute accent |
´ |
´ |
´ |
| paragraph sign |
¶ |
¶ |
¶ |
| middle dot |
· |
· |
· |
| cedilla |
¸ |
¸ |
¸ |
| superscript one |
¹ |
¹ |
¹ |
| right angle quote |
» |
» |
» |
| one-fourth |
¼ |
¼ |
¼ |
| one-half |
½ |
½ |
½ |
| three-fourths |
¾ |
¾ |
¾ |
| inverted question mark |
¿ |
¿ |
¿ |
| multiply sign |
× |
× |
× |
| division sign |
÷ |
÷ |
÷ |
Section 3 |
| Alpha Code |
Numerical Code |
Symbol |
Name |
| |
	 |
|
Horizontal Tab |
| |
|
|
Line feed |
| |
  |
|
space |
| |
! |
! |
Exclamation point |
| " |
" |
" |
Double quote |
| |
# |
# |
Number sign |
| |
$ |
$ |
Dollar sign |
| |
% |
% |
Percent sign |
| & |
& |
& |
Ampersand (and sign) |
| |
' |
' |
Single quote |
| |
( |
( |
Left parenthesis |
| |
) |
) |
Right parenthesis |
| |
* |
* |
Asterix (star) |
| |
+ |
+ |
Plus |
| |
, |
, |
Comma |
| |
- |
- |
Minus |
| |
. |
. |
Period |
| |
/ |
/ |
Forward slash |
| |
0 |
0 |
Zero |
| |
1 |
1 |
One |
| |
2 |
2 |
Two |
| |
3 |
3 |
Three |
| |
4 |
4 |
Four |
| |
5 |
5 |
Five |
| |
6 |
6 |
Six |
| |
7 |
7 |
Seven |
| |
8 |
8 |
Eight |
| |
9 |
9 |
Nine |
| |
: |
: |
Colon |
| |
; |
; |
Semi-colon |
| < |
< |
< |
Less-than sign |
| |
= |
= |
Equal sign |
| > |
> |
> |
Greater-than sign |
| |
? |
? |
Question mark |
| |
@ |
@ |
At-sign |
| |
A |
A |
Capital a |
| |
B |
B |
Capital b |
| |
C |
C |
Capital c |
| |
D |
D |
Capital d |
| |
E |
E |
Capital e |
| |
F |
F |
Capital f |
| |
G |
G |
Capital g |
| |
H |
H |
Capital h |
| |
I |
I |
Capital i |
| |
J |
J |
Capital j |
| |
K |
K |
Capital k |
| |
L |
L |
Capital l |
| |
M |
M |
Capital m |
| |
N |
N |
Capital n |
| |
O |
O |
Capital o |
| |
P |
P |
Capital p |
| |
Q |
Q |
Capital q |
| |
R |
R |
Capital r |
| |
S |
S |
Capital s |
| |
T |
T |
Capital t |
| |
U |
U |
Capital u |
| |
V |
V |
Capital v |
| |
W |
W |
Capital w |
| |
X |
X |
Capital x |
| |
Y |
Y |
Capital y |
| |
Z |
Z |
Capital z |
| |
[ |
[ |
Left square bracket |
| |
\ |
\ |
Back slash |
| |
] |
] |
Right square bracket |
| |
^ |
^ |
Caret |
| |
_ |
_ |
Underscore |
| |
` |
` |
Grave accent |
| |
a |
a |
Lowercase a |
| |
b |
b |
Lowercase b |
| |
c |
c |
Lowercase c |
| |
d |
d |
Lowercase d |
| |
e |
e |
Lowercase e |
| |
f |
f |
Lowercase f |
| |
g |
g |
Lowercase g |
| |
h |
h |
Lowercase h |
| |
i |
i |
Lowercase i |
| |
j |
j |
Lowercase j |
| |
k |
k |
Lowercase k |
| |
l |
l |
Lowercase l |
| |
m |
m |
Lowercase m |
| |
n |
n |
Lowercase n |
| |
o |
o |
Lowercase o |
| |
p |
p |
Lowercase p |
| |
q |
q |
Lowercase q |
| |
r |
r |
Lowercase r |
| |
s |
s |
Lowercase s |
| |
t |
t |
Lowercase t |
| |
u |
u |
Lowercase u |
| |
v |
v |
Lowercase v |
| |
w |
w |
Lowercase w |
| |
x |
x |
Lowercase x |
| |
y |
y |
Lowercase y |
| |
z |
z |
Lowercase z |
| |
{ |
{ |
Left curly brace |
| |
| |
| |
Vertical bar |
| |
} |
} |
Right curly brace |
| ˜ |
~ |
~ |
tilde |
| |
 |
|
Unknown |
| |
€ |
|
Euro |
| |
 |
|
Unknown |
| ‚ |
‚ |
‚ |
Single low-quote |
| |
ƒ |
|
Script f |
| &dbquo; |
„ |
„ |
Double low-quote |
| |
… |
|
Elipsis |
| † |
† |
† |
Dagger |
| ‡ |
‡ |
‡ |
Double dagger |
| |
ˆ |
|
Hatchek |
| ‰ |
‰ |
‰ |
Per million symbol |
| |
Š |
|
Capital esh |
| ‹ |
‹ |
‹ |
Left single angle quote |
| |
Œ |
|
OE ligature |
| |
 |
|
Unknown |
| |
Ž |
|
Capital |
| |
 |
|
Unknown |
| |
 |
|
Unknown |
| ‘ |
‘ |
‘ |
Left single-quote |
| ’ |
’ |
’ |
Right single-quote |
| “ |
“ |
“ |
Left double-quote |
| ” |
” |
” |
Right double-quote |
| |
• |
|
Small bullet |
| – |
– |
|
En dash |
| — |
— |
|
Em dash |
| &tilde |
˜ |
|
Tilde |
| ™ |
™ |
|
Trademark |
| |
š |
|
Lowercase esh |
| › |
› |
› |
Right single angle quote |
| |
œ |
|
oe ligature |
| |
 |
|
Unknown |
| |
ž |
|
Lowercase |
| Ÿ |
Ÿ |
|
Uppercase y-umlaut |
| |
  |
|
Non-breaking space |
| ¡ |
¡ |
¡ |
Inverted exclamation point |
| ¢ |
¢ |
¢ |
Cent |
| £ |
£ |
£ |
Pound currency sign |
| ¤ |
¤ |
¤ |
Currency sign |
| ¥ |
¥ |
¥ |
Yen currency sign |
| ¦ |
¦ |
¦ |
Broken vertical bar |
| § |
§ |
§ |
Section symbol |
| ¨ |
¨ |
¨ |
Umlaut (Diaeresis) |
| © |
© |
© |
Copyright |
| ª |
ª |
ª |
Feminine ordinal indicator (superscript lowercase a) |
| « |
« |
« |
Left angle quote |
| ¬ |
¬ |
¬ |
Not sign |
| ­ |
­ |
|
Soft hyphen |
| ® |
® |
® |
Registered sign |
| ¯ |
¯ |
¯ |
Macron |
| ° |
° |
° |
Degree sign |
| ± |
± |
± |
Plus/minus sign |
| ² |
² |
² |
Superscript 2 |
| ³ |
³ |
³ |
Superscript 3 |
| |
´ |
´ |
Acute accent |
| µ |
µ |
µ |
Micro sign |
| ¶ |
¶ |
¶ |
Pilcrow sign (paragraph) |
| · |
· |
· |
Middle dot |
| ¸ |
¸ |
¸ |
Cedilla |
| ¹ |
¹ |
¹ |
Superscript 1 |
| º |
º |
º |
Masculine ordinal indicator (superscript o) |
| » |
» |
» |
Right angle quote |
| ¼ |
¼ |
¼ |
One quarter fraction |
| ½ |
½ |
½ |
One half fraction |
| ¾ |
¾ |
¾ |
Three quarters fraction |
| ¿ |
¿ |
¿ |
Inverted question mark |
| À |
À |
À |
A grave accent |
| Á |
Á |
Á |
A accute accent |
| Â |
 |
 |
A circumflex |
| Ã |
à |
à |
A tilde |
| Ä |
Ä |
Ä |
A umlaut |
| Å |
Å |
Å |
A ring |
| Æ |
Æ |
Æ |
AE ligature |
| Ç |
Ç |
Ç |
C cedilla |
| È |
È |
È |
E grave |
| É |
É |
É |
E acute |
| Ê |
Ê |
Ê |
E circumflex |
| Ë |
Ë |
Ë |
E umlaut |
| Ì |
Ì |
Ì |
I grave |
| Í |
Í |
Í |
I acute |
| Î |
Î |
Î |
I circumflex |
| Ï |
Ï |
Ï |
I umlaut |
| Ð |
Ð |
Ð |
Eth |
| Ñ |
Ñ |
Ñ |
N tilde (enye) |
| Ò |
Ò |
Ò |
O grave |
| Ó |
Ó |
Ó |
O acute |
| Ô |
Ô |
Ô |
O circumflex |
| Õ |
Õ |
Õ |
O tilde |
| Ö |
Ö |
Ö |
O umlaut |
| × |
× |
× |
Multiplication sign |
| Ø |
Ø |
Ø |
O slash |
| Ù |
Ù |
Ù |
U grave |
| Ú |
Ú |
Ú |
U acute |
| Û |
Û |
Û |
U circumflex |
| Ü |
Ü |
Ü |
U umlaut |
| Ý |
Ý |
Ý |
Y acute |
| Þ |
Þ |
Þ |
Thorn |
| ß |
ß |
ß |
SZ ligature |
| à |
à |
à |
a grave |
| á |
á |
á |
a acute |
| â |
â |
â |
a circumflex |
| ã |
ã |
ã |
a tilde |
| ä |
ä |
ä |
a umlaut |
| å |
å |
å |
a ring |
| æ |
æ |
æ |
ae ligature |
| ç |
ç |
ç |
c cedilla |
| è |
è |
è |
e grave |
| é |
é |
é |
e acute |
| ê |
ê |
ê |
e circumflex |
| ë |
ë |
ë |
e umlaut |
| ì |
ì |
ì |
i grave |
| í |
í |
í |
i acute |
| î |
î |
î |
i circumflex |
| ï |
ï |
ï |
i umlaut |
| ð |
ð |
ð |
eth |
| ñ |
ñ |
ñ |
n tilde |
| ò |
ò |
ò |
o grave |
| ó |
ó |
ó |
o acute |
| ô |
ô |
ô |
o circumflex |
| õ |
õ |
õ |
o tilde |
| ö |
ö |
ö |
o umlaut |
| ÷ |
÷ |
÷ |
Division symbol |
| ø |
ø |
ø |
o slash |
| ù |
ù |
ù |
u grave |
| ú |
ú |
ú |
u acute |
| û |
û |
û |
u circumflex |
| ü |
ü |
ü |
u umlaut |
| ý |
ý |
ý |
y acute |
| þ |
þ |
þ |
thorn |
| ÿ |
ÿ |
ÿ |
y umlaut |
|