





 |
HTML - Cheat Sheet
This is a listing of all the HTML tags in the XHTML 1.0 Transitional specification. Not all attributes have been listed. For more information, visit www.w3.org.
Document Structure
| Tag |
Attribute(s) |
Value(s) |
| body |
background
bgcolor
text
link
vlink
alink |
image
color
color
color
color
color |
| head |
|
|
| html |
xmlns |
http://www.w3.org/1999/xhtml |
Document Head
| Tag |
Attribute(s) |
Value(s) |
| base |
href
target |
link
_blank, _self, _parent, _top |
| link |
charset
href
type
rel
target |
character data (ISO-8859-1, SHIFT_JIS, UTF-8)
link
charater data (text/css, text/javascript, video/quicktime)
link types (StyleSheet, Alternate)
_blank, _self, _parent, _top |
| meta |
http-equiv
name
content
scheme |
character data
character data
character data
character data |
| noscript |
|
|
| script |
type
src |
character data (text/javascript, application/java)
link |
| style |
type
title |
StyleSheet
text |
| title |
|
|
Text Elements
| Tag |
Attribute(s) |
Value(s) |
| abbr |
|
|
| acronym |
|
|
| address |
|
|
| b |
|
|
| bdo |
dir |
ltr or rtl |
| big |
|
|
| cite |
|
|
| code |
|
|
| del |
cite
datetime |
link
YYYY-MM-DDThh:mm:ssTZD |
| dfn |
|
|
| em |
|
|
| i |
|
|
| ins |
cite
datetime |
link
YYYY-MM-DDThh:mm:ssTZD |
| kdb |
|
|
| pre |
|
|
| q |
cite |
link (sample.html) |
| s |
|
|
| samp |
|
|
| small |
|
|
| span |
class |
style name |
| strike |
|
|
| strong |
|
|
| sub |
|
|
| sup |
|
|
| tt |
|
|
| u |
|
|
| var |
|
|
Content Structure
| Tag |
Attribute(s) |
Value(s) |
| blockquote |
cite |
link |
| br / |
|
|
| dd |
|
|
| div |
class |
style name |
| dl |
|
|
| dt |
|
|
| h1 - h6 |
align
class |
left, right, center, justify
style name |
| hr / |
align
width
noshade
size |
left, right, center
number or percentage
noshade
number of pixels |
| li |
|
|
| ol |
type
start |
1, A, a, i, I
number |
| p |
align
class |
left, right, center, justify
style name |
| ul |
type
start |
disc, circle, square
number |
Linking
| Tag |
Attribute(s) |
Value(s) |
| a |
id
name
href
shape
coords
target |
text
text
link
rect, circle, poly
"left, top, right, bottom"
_blank, _parent, _bottom, _self |
Imaging
| Tag |
Attribute(s) |
Value(s) |
| area |
alt
shape
coords
href
target |
text description
rect, circle, poly
"left, top, right, bottom"
link
_top, _parent, _self, _bottom |
| img / |
src
alt
id
name
height
width
usemap
align
border
hspace
vspace |
link
text description
text
text
number of pixels
number of pixels
link
top, middle, bottom, left, right
number
number of pixels
number of pixels |
| map |
id
name |
text
text |
Forms
| Tag |
Attribute(s) |
Value(s) |
| button |
name
id
value
type |
text
text
text
button, submit, reset |
| fieldset |
|
|
| form |
action
method
name
id |
link
get, post
text
text |
| input |
type
name
id
value
size
maxlength |
text, password, checkbox, radio, submit, reset, file, hidden, image, button
text
text
text
number
number of characters |
| label |
for |
name/id of assoicated object |
| legend |
align |
top, bottom, left, right |
| optgroup |
label |
text |
| option |
label
value
selected |
text
text
selected |
| select |
name
id
size |
text
text
number |
| textarea |
name
id
rows
cols |
text
text
number
number |
Frames
| Tag |
Attribute(s) |
Value(s) |
| iframe |
name
id
src
frameborder
marginwidth
marginheight
scrolling
height
width |
text
text
link
1, 0
number of pixels
number of pixels
yes, no, auto
number or percentage
number or percentage |
| noframes |
|
|
Tables
| Tag |
Attribute(s) |
Value(s) |
| caption |
align |
top, bottom, left, right |
| col |
span
align
valign |
number
left, center, right, justify, char
top, middle, bottom, baseline |
| colgroup |
span
align
valign |
number
left, center, right, justify, char
top, middle, bottom, baseline |
| table |
width
border
frame
rules
cellspacing
cellpadding
align
bgcolor |
number of pixels or percentage
number of pixels
void, above, below, hsides, lhs, rhs, vsides, box, border
none, groups, rows, cols, all
number
number
left, center, right
color |
| tbody |
align
valign |
left, center, right, justify, char
top, middle, bottom, baseline |
| td |
abbr
rowspan
colspan
align
valign
bgcolor
width
height |
text
number
number
left, center, right, justify, char
top, middle, bottom, baseline
color
number of pixels or percentage
number of pixels or percentage |
| tfoot |
align
valign |
left, center, right, justify, char
top, middle, bottom, baseline |
| th |
abbr
rowspan
colspan
align
valign
bgcolor
width
height |
text
number
number
left, center, right, justify, char
top, middle, bottom, baseline
color
number of pixels or percentage
number of pixels or percentage |
| thead |
align
valign |
left, center, right, justify, char
top, middle, bottom, baseline |
| tr |
align
valign
bgcolor |
left, center, right, justify, char
top, middle, bottom, baseline
color |
Objects
| Tag |
Attribute(s) |
Value(s) |
| applet |
codebase
archive
code
object
alt
name
id
width
height
align
hspace
vspace |
link
character data
character data
character data
text
text
text
number of pixels or percentage
number of pixels or percentage
top, middle, left, bottom, right
number of pixels
number of pixels |
| object |
declare
classid
codebase
data
type
codetype
archive
standby
height
width
usemap
name
id
align
border
hspace
vspace |
declare
link
link
link
character data
character data
character data
text
number of pixels or percentage
number of pixels or percentage
link
text
text
top, middle, left, bottom, right
number of pixels
number of pixels
number of pixels |
| param |
id
name
value
valuetype
type |
text
text
character data
data, ref, object
character data |
Return to Web Tutorials or continue on the the Style Sheet Tutorial.
Introduction | Basic Formatting | Images | Linking
Additional Formatting | Lists/Bullets | Basic Tables
Advanced Tables | Forms | HTML Cheat Sheet
|
 |
|
 |