Summary of Table Tags 169
Tables
Summary of Table Tags
Web Design in a Nutshell, eMatter Edition
table. The caption’s position as displayed in the browser can be controlled with
thealign attribute (orvalign in MSIE).
Attributes
align=top|bottom|left|right|center
Positions the caption relative to the table. This attribute has been deprecated
by the W3C 4.0 Spec in favor of style sheet positioning.
summary=text
W3C 4.0 Specification only.Used to provide a longer description of the table’s
contents that could be used by a speech- or Braille-based web browser.
valign=top|bottom
Internet Explorer 3.0 and higher only.Positions the caption above or below
the table (top is the default).
Specifies properties for a column (or columns) within a column group
(
being part of a formal structural grouping.
Column groups and columns were introduced by Internet Explorer 3.0 and are
now proposed by the HTML 4.0 Specification as a standard way to label table
structure. They may also be useful in speeding the table display (i.e., the columns
can be displayed incrementally without waiting for the entire contents of the
table).
Attributes
align=left|right|center
Specifies alignment of text in the cells of a column.
char=character
Specifies a character along which the cell contents will be aligned. The default
character is a decimal point (language-appropriate).
charoff=length
Specifies the distance to the first alignment character (char) on each line. If a
line doesn’t use an alignment character, it should be horizontally shifted to
end at the alignment position.
span=number
Specifies the number of columns “spanned” by the
shares its attributes with all the columns it spans).
valign=top|middle|bottom|baseline
Specifies the vertical alignment of text in the cells of a column.
width=pixels, percentage,n*
Specifies the width (in pixels, percentage, or relative) of each column
spanned by the
containing