A Complete Guide to Web Design

(やまだぃちぅ) #1
Summary of Table Tags 175

Tables

Summary of Table Tags

Web Design in a Nutshell, eMatter Edition

proposed in the W3C 4.0 Specification (see) and must contain at least
one row (). Its end tag is optional.


Attributes


align=left|center|right|justify|char
Specifies horizontal alignment (or justification) of cell contents.


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.


valign=top|middle|bottom|baseline
Specifies vertical alignment of cell contents.


NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
...

Defines a table header cell. Table header cells function the same as table data cells
(). Browsers generally display the content of table header cells in bold text
centered horizontally and vertically in the cell (although some browsers vary). The
end tag is optional.


Attributes
The tag uses the same attributes as the tag. See listing under.


NN: 2, 3, 4- MSIE:2, 3, 4, 5 - HTML 4 -WebTV- Opera3
...

Defines the head of the table and should contain information about a table. It
must contain at least one row ().is one of the “row group” tags
introduced by Internet Explorer and proposed in the W3C 4.0 Specification (see


). Its end tag is optional.

Attributes


align=left|center|right|justify|char
Specifies horizontal alignment (or justification) of cell contents.


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.


valign=top|middle|bottom|baseline
Specifies vertical alignment of cell contents.

Free download pdf