HTML Tag and Attribute Reference
<table>
<table> . . . </table>
Define a table.
Attributes
align
=
position
Align the table either
left
or
right
with the surrounding text flow.
background
=
url
IE*
Specify an image to be tiled in the background of the table.
bgcolor
=
color
Define the background color for the entire table.
border
=
n
Create a border
n
pixels wide.
bordercolor
=
color
IE*
Define the border color for the entire table.
bordercolordark
=
color
IE*
Define the dark border-highlighting color for the entire table.
bordercolorlight
=
color
IE*
Define the light border-highlighting color for the entire table.
cellpadding
=
n
Place
n
pixels of padding around each cell's contents.
cellspacing
=
n
Place
n
pixels of spacing between cells.
cols
=
n
N* IE*
Specify the number of colums in this table.
frame=[ void | above | below | hsides | lhs | rhs | vsides | box | border ]
IE*
Specify which sides of a table's outer border will be drawn.
void
removes outer borders;
box
and
border
displays all.
hsides
draws horizontal sides;
vsides
draws vertical sides.
lhs
draws left side;
rhs
right side.
height
=
n
N*
Define the height of the table in pixels.
hspace
=
n
N*
Specify the horizontal space, in pixels, added at the left and right of the table.
nowrap
IE*
Supress text wrapping in table cells.
rules=[ all | cols | groups | none | rows ]
IE*
Turn off (
none
) ot turn on rules between cells by
cols
,
rows
,
groups
, or
all
.
summary
=
string
Provide a description to summarize this table.
vspace
=
n
Specify the vertical space, in pixels, added at the top and bottom of the table.
width
=
n
Set the width of the table to
n
pixels or a of the window width.
<tbody>
<tbody> . . . </tbody>
Create row group within a table.
Attributes
align
=
position
Align the table body cell contents to the
left
,
center
, or
right
.
char
=
char
Specify the cell alignment character for the body group.
charoff
=
value
Specify the offset of the alignment position within the cells.
valign
=
position
Vertically align the body group cell's contents to the
top
,
center
,
bottom
, or
baseline
of the cell.
<td>
<td> . . . </td>
Define a table data cell.
Attributes
abbr
=
string
Specify an abbreviation for the cell's contents.
align
=
type
Align the cell contents to the
left
,
center
or
right
.
axis
=
string
Provide a name for a related group of cells.
background
=
url
IE*
Specify an image to be tiled in the background of the cell.
bgcolor
=
color
Define the background color for the cell.
bordercolor
=
color
IE*
Define the border color for the cell.
bordercolordark
=
color
IE*
Define the dark border-highlighting color for the cell.
bordercolorlight
=
color
IE*
Define the light border-highlighting color for the cell.
char
=
char
Specify the cell alignment character.
charoff
=
value
Specify the offset of the alignment position within the cell.
colspan
=
n
Have this cell stradle
n
adjacent columns.
headers
=
list
Provide a list of header cell names associated with this cell.
height
=
n
Define the height, in pixels, for this cell.
nowrap
Do not automatically wrap text in this cell.
rowspan
=
n
Have the cell stradle
n
adjacent rows.
scope
=
scope
Define the scope of this header cell, either
row
,
col
,
rowgroup
, or
colgroup
.
valign
=
type
Vertically align this cell's contents to the
top
,
middle
,
bottom
, or
baseline
of the cell.
width
=
n
Set the width of this cell to
n
pixels or a percentage of the table width.
<textarea>
<textarea> . . . </textarea>
Define a multiline text input area within a
<form>
; content of the
<textarea>
tag is the initial, default value.
Attributes
accesskey
=
char
Define the hot-key character for this element.
cols
=
n
Display
n
columns of text within the text area.
disabled
Disable this control, making it inactive.
name
=
string
Define the name for the text-area value that is passed to the form-processing application (required).
onblur
=
applet
Specify an applet to be run when the mouse leaves this element.
onchange
=
applet
Specify an applet to be run if a user changes the value of this element.
onfocus
=
applet
Specify an applet to be run when the mouse enters this element.
onselect
=
applet
Specify an applet ot be run if the user clicks this element.
readonly
Prevent user modification of this element.
rows
=
n
Display
n
rows of text within the text area.
tabindex
=
n
Specify this element's position in the tabbing order.
wrap
=
style
N*
Set word wrapping within the text area to
off
,
virtual
(display wrap, but do not transmit to server), or
physical
(display and transmit wrap).
<tfoot>
<tfoot> . . . </tfoot>
Define a table footer.
Attributes
align
=
position
Align the footer cell contents to the
left
,
center
, or
right
.
char
=
char
Specify the cell alignment character.
charoff
=
value
Specify the offset of the alignment position within the cell.
valign
=
position
Vertically align the footer cells' contents to the
top
,
center
,
bottom
, or
baseline
of a cell.
<th>
<th> . . . </th>
Define a table header cell.
Attributes
abbr
=
string
Specify an abbreviation for te cell's contents.
align
=
type
Align the cell contents to the
left
,
center
, or
right
.
axis
=
string
Provide a name for a related group of cells.
background
=
url
IE*
Specify an image to be tiled in the background of the cell.
bgcolor
=
color
Define the background color for the cell.
bordercolor
=
color
IE*
Define the border color for the cell.
bordercolordark
=
color
IE*
Define the dark border-highlighting color for the cell.
bordercolorlight
=
color
IE*
Define the light border-highlighting color for the cell.
char
=
char
Specify the cell alignment character.
charoff
=
value
Specify the offset of the alignment position within the cell.
colspan
=
n
Have this cell stradle
n
adjacent columns.
headers
=
list
Provide a list of header cell names associated with this cell.
height
=
n
Define the height, in pixels, for this cell.
nowrap
Do not automatically wrap and fill text of this cell.
rowspan
=
n
Have this cell stradle
n
adjacent rows.
scope
=
scope
Define the scope of this header cell:
row
,
col
,
rowgroup
, or
colgroup
.
valign
=
type
Vertically align this cell's contents to the
top
,
middle
,
bottom
, or
baseline
of a cell.
width
=
n
Set the width of this cell to
n
pixels or a percentage of the table width.
<thead>
<thead> . . . </thead>
Define a table heading.
Attributes
align
=
position
Align the header cells' contents to the
left
,
center
, or
right
.
char
=
char
Specify the cell alignment character for heading cells.
charoff
=
value
Specify the offset of the alignment position within the cell.
valign
=
position
Vertically align the header cells' contents to the
top
,
center
,
bottom
, or
baseline
of a cell.
<title>
<title> . . . </title>
Define a HTML document's title.
Attributes
dir
=
dir
Specify the rendering direction for the text, either left ot right (
ltr
) or right to left (
rtl
).
lang
=
language
Specify the used for this tag's contents using a standard two-character ISO language name.
<tr>
<tr> . . . </tr>
Define a row of cells within a table.
Attributes
align
=
type
Align the cell contents in this row to the
left
,
center
or
right
.
background
=
url
IE*
Specify an image to be tiled in the background of the cell.
bgcolor
=
color
Define the background color for this row.
border
=
n
Create a border
n
pixels wide.
bordercolor
=
color
IE*
Define the border color for this row.
bordercolordark
=
color
IE*
Define the dark border-highlighting color for this row.
bordercolorlight
=
color
IE*
Define the light border-highlighting color for this row.
char
=
char
Specify the cell alignment character for this row.
charoff
=
value
Specify the offset of the alignment position within the cells of this row.
nowrap
IE*
Disable word wrap for all cells in this row.
valign
=
type
Vertically align the cell contents in this row to the
top
,
middle
,
bottom
, or
baseline
of the cell.
<tt>
<tt> . . . </tt>
Format the enclosed text in typewriter-style (monospaced) font.