(^592) Appendix A XHTML Reference
A.11 Table Tags
The <table>Ta g
<table></table>
The <table>tag creates a table. Table A.18 shows <table>tag attributes and their
values.
Table A.17tag shapes and coordsattribute values
Shape Coords Meaning
circle "x,y,r" The coordinates at point (x, y) indicate the center of the circle. The value
of ris the radius of the circle.
poly "x1, y1, x2, y2, x3,
y3", and so on
The values of each (x, y) pair represent the coordinates of a corner point
of the polygon.
rect "x1, y1, x2, y2" The coordinates at point (x1, y1) represent the upper-left corner of the
rectangle. The coordinates at point (x2, y2) represent the lower-right
corner of the rectangle.
Table A.18
tag attributes
Attribute Value Usage
align "left"(default), "center", "right" Specifies the horizontal alignment of the table.
(Deprecated)
bgcolor A valid color; the W3C recommends hexa-
decimal colors
Specifies the color of the background. This attribute
can also be used with <tr>, <td>, and <th>.
(Deprecated)
border Number of pixels; "0"indicates no border Specifies the size of the border around the cells.
bordercolor A valid color; the W3C recommends hexa-
decimal colors
The color of the table border. Not part of the W3C
Recommendation; originally only used by Internet
Explorer.
cellpadding Number of pixels Specifies the amount of space between the cell’s
borders and its contents.
cellspacing Number of pixels Specifies the amount of space between cells.
frame "void", "above", "below", "hsides",
"lhs", "rhs", "vsides", "box",
"border"
Specifies the parts of the outside border that should
be visible.
rules "rows"indicates the interior border dis-
plays between rows only
Configures the interior border in a table.
"groups"indicates the interior border dis-
plays around groups only (see <tbody>,
<thead>, and <tfoot>)
"all"indicates the default border display
summary A text description of the contents/organiza-
tion/purpose of the table
Provides for accessibility. A visitor may obtain an
overview of the table without reading it cell by cell.
This attribute may be accessed by screen readers.