![]()
<TABLE ...>
<TBODY>
<TD>
<TEXTAREA>
<TFOOT>
<TH>
<THEAD>
<TITLE>
<TR>
<TT>
This is the main wrapper for all the other table elements, and
other table elements will be ignored if they aren't wrapped
inside of a <TABLE> ... </TABLE> tag.
The <TABLE> element has the following attributes :
BORDER
This attribute appears in the <TABLE> element. If present,
borders are drawn around all table cells. If absent, there are no
borders, but by default space is left for borders, so the same
table with and without the BORDER attribute will have the same
width. By default, tables are rendered without borders. The value
should be a pixel value.
CELLSPACING=<value>
This attribute allows control over the space used between cells
in a table. The value should be a pixel value.
CELLPADDING=<value>
This attribute allows control over the space inserted between the
cell data and cell wall in a table. The value should be a pixel
value.
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0> gives the most
compact table possible.
WIDTH=<value_or_percent>
This attribute is used to describe the desired width of this
table, either as an absolute width in pixels, or a percentage of
document width. Ordinarily complex heuristics are applied to
tables and their cells to attempt to present a pleasing looking
table. Setting the WIDTH attribute overrides those heuristics and
instead effort is put into fitting the table into the desired
width as specified.
HEIGHT=<value_or_percent>
This attribute describes the height of the table, either as a
particular pixel value, or as a percentage of the display window.
As for the WIDTH attribute above, setting this attribute will
override the browsers internal display mechanism and it will
render the table according to the values given.
ALIGN
Microsofts Internet Explorer (version 2.0 and above) and Netscape
support the ALIGN attribute to the <TABLE> tag. Like that
used for floating images, it allows a table to be aligned to the
left or right of the page, allowing text to flow around the
table. Also, as with floating images, it is necessary to have
knowledge of the <BR CLEAR=
> element, to be able to
organise the text so as to minimise any unwanted clashing.
VALIGN
Microsofts Internet Explorer (version 2.0 and above) supports the
VALIGN attribute to the <TABLE> element. It specifies that
the text can be top- or bottom-aligned. The default is
centre-aligned.
BGCOLOR
Microsofts Internet Explorer (version 2.0 and above) supports use
of the BGCOLOR attribute in the TABLE element. It allows the
background colour of the table to be specified, using either the
specified colour names, or a rrggbb hex triplet.
BORDERCOLOR
Microsofts Internet Explorer (version 2.0 and above) includes
support for this attribute which sets the border colour of the
table. Any of the pre-defined colour names can be used, as well
as any colour defined by a rrggbb hex triplet. It is necessary
for the BORDER attribute to be present in the main <TABLE>
element for border colouring to work.
BORDERCOLORLIGHT
Microsofts Internet Explorer (version 2.0) allows use of the
BORDERCOLORLIGHT attribute to set independently, the lighter
colour to be displayed on a 3-dimensional <TABLE> border.
It is the opposite of BORDERCOLORDARK. Any of the pre-defined
colour names can be used, as well as any colour defined by a
rrggbb hex triplet. It is necessary for the BORDER attribute to
be present in the main <TABLE> element for border colouring
to work.
BORDERCOLORDARK
Microsofts Internet Explorer (version 2.0) allows use of the
BORDERCOLORDARK attribute to set independently, the darker colour
to be displayed on a 3-dimensional <TABLE> border. It is
the opposite of BORDERCOLORLIGHT. Any of the pre-defined colour
names can be used, as well as any colour defined by a rrggbb hex
triplet. It is necessary for the BORDER attribute to be present
in the main <TABLE> element for border colouring to work.
The BGCOLOR, BORDERCOLOR, BORDERCOLORLIGHT and BORDERCOLORDARK
attributes can also be used in <TH>, <TR> and <TD>
elements, with the colour defined in the last element over-riding
those defined before. E.g. if a <TD> element contains a
BORDERCOLOR attribute setting, the setting specified will be used
instead of any colour settings that may have been specified in
the <TR> element, which in turn over-rides any colour
settings in the <TABLE> element.
BACKGROUND
Internet Explorer supports the placing of images inside the
<TABLE> element. (Also in the <TD> and <TH>
elements) If used in the <TABLE> element, the image in
question will be tiled behind all of the table cells. The syntax
is the same as that for <BODY
BACKGROUND ...>
FRAME
Only Internet Explore supports the use of this attribute. It
requires the BORDER attribute to be set and affects the display
of the table borders. It can accept any of the following values:
void - this removes all the external borders
above - this displays external borders at the top of the table
only
below - this displays external borders at the bottom of the table
only
hsides - this displays external borders at the horizontal sides
of the table. I.e. at the top and bottom of the table.
lhs - this displays external borders at the left hand edges of
the table only
rhs - this displays external borders at the right hand edges of
the table only.
vsides - this displays external borders at both left and right
hand edges of the table
box - this displays a box around the table (i.e. top, bottom,
left and right hand sides)
RULES
Internet Explorer supports this new attribute. It requires the
BORDER value to be set and may only be used in tables where the <THEAD>, <TBODY>
and <TFOOT> sections have been set. It
affects the display of the internal table borders
("rules"). It can accept the following values:
none - this removes all the internal rules
basic - this displays horizontal borders between the
<THEAD>, <TBODY> and <TFOOT> sections
rows - this displays horizontal borders between all rows
cols - this displays horizontal borders between all columns
all - this displays all the internal rules.
This element, which is Internet Explorer specific, is used to specify the body section of the table. It is somewhat analogous to the <BODY> element. It does not render on the screen, but is required if RULES are set in the <TABLE>.
This stands for Table Data, and specifies a standard table
data cell. Table data cells must only appear within table rows.
Each row need not have the same number of cells specified as
short rows will be padded with blank cells on the right. A cell
can contain any of the HTML elements normally present in the body
of an HTML document. The default alignment of table data is
ALIGN=left and VALIGN=middle. These alignments are overridden by
any alignments specified in the containing <TR>
element, and those alignments in turn are overridden by any ALIGN
or VALIGN attributes explicitly specified on this cell. By
default lines inside of table cells can be broken up to fit
within the overall cell width. Specifying the NOWRAP attribute
for a <TD> prevents line breaking for that cell.
<TD ...> ... </TD> can accept the following
attributes.
ALIGN
This attribute controls whether text inside the table cell(s) is
aligned to the left side of the cell, the right side of the cell,
or centred within the cell. Values are left, center, and right.
VALIGN
The VALIGN attribute controls whether text inside the table
cell(s) is aligned to the top of the cell, the bottom of the
cell, or vertically centred within the cell. It can also specify
that all the cells in the row should be vertically aligned to the
same baseline. Values are top, middle, bottom and baseline.
WIDTH
This attribute is used to describe the desired width of the cell,
either as an absolute width in pixels, or a percentage of table
width. Ordinarily complex heuristics are applied to tables and
their cells to attempt to present a pleasing looking table.
Setting the WIDTH attribute overrides those heuristics and
instead effort is put into fitting the table into the desired
width as specified.
HEIGHT=<value_or_percent>
This attribute describes the height of the cell, either as a
particular pixel value, or as a percentage of the table width. As
for the WIDTH attribute above, setting this attribute will
override the browsers internal display mechanism and it will
render the table according to the values given.
NOWRAP
If this attribute appears in any table cell (<TH>
or <TD>) it means the lines within this cell cannot be
broken to fit the width of the cell. Be cautious in use of this
attribute as it can result in excessively wide cells.
COLSPAN
This attribute can appear in any table cell (<TH>
or <TD>) and it specifies how many columns of the table
this cell should span. The default COLSPAN for any cell is 1.
ROWSPAN
This attribute can appear in any table cell (<TH>
or <TD>) and it specifies how many rows of the table this
cell should span. The default ROWSPAN for any cell is 1. A span
that extends into rows that were never specified with a <TR> will be truncated.
BGCOLOR
Microsofts Internet Explorer (version 2.0 and above) has also
included use of the BGCOLOR attribute in the TD element. It
allows the background colour of the data cell to be specified,
using either the specified colour names, or a rrggbb hex triplet.
BORDERCOLOR
Microsofts Internet Explorer (version 2.0 and above) includes
support for this attribute which sets the border colour of the
data cell. Any of the pre-defined colour names can be used, as
well as any colour defined by a rrggbb hex triplet. It is
necessary for the BORDER attribute to be present in the main <TABLE> element for border colouring to
work.
BORDERCOLORLIGHT
Microsofts Internet Explorer (version 2.0 and above) allows use
of the BORDERCOLORLIGHT attribute to set independently, the
lighter colour to be displayed on a 3-dimensional <TABLE>
border. It is the opposite of BORDERCOLORDARK. Any of the
pre-defined colour names can be used, as well as any colour
defined by a rrggbb hex triplet. It is necessary for the BORDER
attribute to be present in the main <TABLE>
element for border colouring to work.
BORDERCOLORDARK
Microsofts Internet Explorer (version 2.0 and above) allows use
of the BORDERCOLORDARK attribute to set independently, the darker
colour to be displayed on a 3-dimensional <TABLE>
border. It is the opposite of BORDERCOLORLIGHT. Any of the
pre-defined colour names can be used, as well as any colour
defined by a rrggbb hex triplet. It is necessary for the BORDER
attribute to be present in the main <TABLE>
element for border colouring to work.
The BGCOLOR, BORDERCOLOR, BORDERCOLORDARK and BORDERCOLORLIGHT
attributes can also be used in <TABLE>,
<TH>, and <TR>
elements, with the colour defined in the last element over-riding
those defined before. E.g. if a <TD> element contains a
BORDERCOLOR attribute setting, the setting specified will be used
instead of any colour settings that may have been specified in
the <TR> element, which in turn
over-rides any colour settings in the <TABLE>
element.
BACKGROUND
Internet Explorer supports the placing of images inside the
<TD> element. (Also in the <TABLE>
and <TH> elements) If used in the
<TD> element, the image in question will be tiled behind
the table data cell specified. The syntax is the same as that for
<BODY BACKGROUND ...>
The TEXTAREA element lets users enter more than one line of
text. For example:
<TEXTAREA NAME="address" ROWS=64 COLS=6>
My home address
Somewhere stree
Somecity 99999
</TEXTAREA>
The text up to the end element (</TEXTAREA>) is used to
initialise the field's value. This end element is always required
even if the field is initially blank. When submitting a form,
lines in a TEXTAREA should be terminated using CR/LF.
In a typical rendering, the ROWS and COLS attributes determine
the visible dimension of the field in characters. The field is
rendered in a fixed-width font. Browsers should allow text to
extend beyond these limits by scrolling as needed.
Recent versions of the Netscape Navigator (from version 2.0) have
introduced the WRAP attribute in the TEXTAREA
element: Now it is possible to specify how to handle
word-wrapping in text input areas in forms.
<TEXTAREA WRAP=OFF> -- the default setting - Wrapping does
not happen. Lines are sent exactly as typed.
<TEXTAREA WRAP=VIRTUAL> -- The display word-wraps, but long
lines are sent as one line without new-lines.
<TEXTAREA WRAP=PHYSICAL> -- The display word-wraps, and the
text is transmitted at all wrap points.
Word wrapping in a TEXTAREA text box is Netscape specific.
This element, which is Internet Explorer specific, is used to specify the footer section of the table. It does not render on the screen, but is required if RULES are set in the <TABLE>.
This stands for Table Header. Header cells are identical to
data cells in all respects, with the exception that header cells
are in a bold FONT, and have a default ALIGN=center.
<TH ...> ... </TH> can contain the following
attributes
ALIGN
The ALIGN attribute controls whether text inside the table
cell(s) is aligned to the left side of the cell, the right side
of the cell, or centred within the cell. Values are left, center,
and right.
VALIGN
This attribute controls whether text inside the table cell(s) is
aligned to the top of the cell, the bottom of the cell, or
vertically centred within the cell. It can also specify that all
the cells in the row should be vertically aligned to the same
baseline. Values are top, middle, bottom and baseline.
WIDTH
This attribute is used to describe the desired width of the
header cell, either as an absolute width in pixels, or a
percentage of table width. Ordinarily complex heuristics are
applied to tables and their cells to attempt to present a
pleasing looking table. Setting the WIDTH attribute overrides
those heuristics and instead effort is put into fitting the table
into the desired width as specified.
HEIGHT=<value_or_percent>
This attribute describes the height of the header cell, either as
a particular pixel value, or as a percentage of the table width.
As for the WIDTH attribute above, setting this attribute will
override the browsers internal display mechanism and it will
render the table according to the values given.
NOWRAP
This attribute specifies that the lines within this cell cannot
be broken to fit the width of the cell. Be cautious in use of
this attribute as it can result in excessively wide cells.
COLSPAN
The COLSPAN attribute specifies how many columns of the table
this cell should span. The default COLSPAN for any cell is 1.
ROWSPAN
This attribute specifies how many rows of the table this cell
should span. The default ROWSPAN for any cell is 1. A span that
extends into rows that were never specified with a <TR>
will be truncated.
BGCOLOR
Microsofts Internet Explorer (version 2.0 and above) has also
included use of the BGCOLOR attribute in the TH element. It
allows the background colour of the heading cell to be specified,
using either the specified colour names, or a rrggbb hex triplet.
BORDERCOLOR
Microsofts Internet Explorer (version 2.0 and above) includes
support for this attribute which sets the border colour of the
heading cell. Any of the pre-defined colour names can be used, as
well as any colour defined by a rrggbb hex triplet. It is
necessary for the BORDER attribute to be present in the main <TABLE> element for border colouring to
work.
BORDERCOLORLIGHT
Microsofts Internet Explorer (version 2.0 and above) allows use
of the BORDERCOLORLIGHT attribute to set independently, the
lighter colour to be displayed on a 3-dimensional <TABLE> border. It is the opposite of
BORDERCOLORDARK. Any of the pre-defined colour names can be used,
as well as any colour defined by a rrggbb hex triplet. It is
necessary for the BORDER attribute to be present in the main <TABLE> element for border colouring to
work.
BORDERCOLORDARK
Microsofts Internet Explorer (version 2.0 and above) allows use
of the BORDERCOLORDARK attribute to set independently, the darker
colour to be displayed on a 3-dimensional <TABLE>
border. It is the opposite of BORDERCOLORLIGHT. Any of the
pre-defined colour names can be used, as well as any colour
defined by a rrggbb hex triplet. It is necessary for the BORDER
attribute to be present in the main <TABLE>
element for border colouring to work.
The BGCOLOR, BORDERCOLOR, BORDERCOLORDARK and BORDERCOLORLIGHT
attributes can also be used in <TABLE>,
<TD>, and <TR>
elements, with the colour defined in the last element over-riding
those defined before. E.g. if a <TD>
element contains a BORDERCOLOR attribute setting, the setting
specified will be used instead of any colour settings that may
have been specified in the <TR> element,
which in turn over-rides any colour settings in the <TABLE> element.
BACKGROUND
Internet Explorer supports the placing of images inside the
<TH> element. (Also in the <TD> and
<TABLE> elements) If used in the
<TH> element, the image in question will be tiled behind
the table header. The syntax is the same as that for <BODY BACKGROUND ...>
This element, which is Internet Explorer specific, is used to specify the head section of the table. It is somewhat analogous to the <HEAD> element. It does not render on the screen, but is required is RULES wish to be set in the <TABLE>.
Every HTML document must have a Title tag. The title should be
some arbitrary string that identifies the contents of the
document and may be used in history lists, or as a label for the
windows displaying the document. Unlike headings, titles are not
typically rendered in the text of a document itself. The Title
element must occur within the head of the document and may not
contain anchors, paragraph elements, or highlighting. Only one
title is allowed in a document.
This is the only element that is required within the Head
element. The other elements described are optional and can be
used when appropriate
<HEAD>
<TITLE> Mohan Iyer's homepage</TITLE>
</HEAD>
This specifies a Table Row. The number of rows in a table is
exactly specified by how many <TR> elements are contained
within it, regardless of cells that may attempt to use the
ROWSPAN attribute to span into non-specified rows. The <TR>
element can have the following attributes.
ALIGN
This controls whether text inside the table cell(s) is aligned to
the left side of the row, the right side of the cell, or centred
within the cell. Values are left, center, and right.
VALIGN
This attribute controls whether text inside the table cell(s) is
aligned to the top of the row, the bottom of the cell, or
vertically centred within the cell. It can also specify that all
the cells in the row should be vertically aligned to the same
baseline. Values are top, middle, bottom and baseline.
BGCOLOR
Microsofts Internet Explorer (version 2.0 and above) has also
included use of the BGCOLOR attribute in the TR element. It
allows the background colour of the row to be specified, using
either the specified colour names, or a rrggbb hex triplet.
BORDERCOLOR
Microsofts Internet Explorer (version 2.0 and above) includes
support for this attribute which sets the border colour of the
row. Any of the pre-defined colour names can be used, as well as
any colour defined by a rrggbb hex triplet. It is necessary for
the BORDER attribute to be present in the main <TABLE>
element for border colouring to work.
BORDERCOLORLIGHT
Microsofts Internet Explorer (version 2.0 and above) allows use
of the BORDERCOLORLIGHT attribute to set independently, the
lighter colour to be displayed on a 3-dimensional <TABLE> border. It is the opposite of
BORDERCOLORDARK. Any of the pre-defined colour names can be used,
as well as any colour defined by a rrggbb hex triplet. It is
necessary for the BORDER attribute to be present in the main <TABLE> element for border colouring to
work.
BORDERCOLORDARK
Microsofts Internet Explorer (version 2.0 and above) allows use
of the BORDERCOLORDARK attribute to set independently, the darker
colour to be displayed on a 3-dimensional <TABLE>
border. It is the opposite of BORDERCOLORLIGHT. Any of the
pre-defined colour names can be used, as well as any colour
defined by a rrggbb hex triplet. It is necessary for the BORDER
attribute to be present in the main <TABLE>
element for border colouring to work. The BGCOLOR, BORDERCOLOR,
BORDERCOLORLIGHT and BORDERCOLORDARK attributes can also be used
in <TABLE>, <TH>,
and <TD> elements, with the colour
defined in the last element over-riding those defined before.
E.g. if a <TD> element contains a
BORDERCOLOR attribute setting, the setting specified will be used
instead of any colour settings that may have been specified in
the <TR> element, which in turn over-rides any colour
settings in the <TABLE> element.
The Teletype element specifies that the text should be
rendered in fixed-width typewriter font. "Text between the
<TT> TT tags</TT> should be displayed in fixed width
typewriter font."
would be displayed as : "Text between the TT tags should be rendered
in fixed width typewriter font. <TT> can also take the
CLASS, ID and STYLE attributes to allow style sheet definitions
to be applied to it. For more details of these attributes, refer
to the Style Sheets topic.