VersionW3C//DTD HTML 3.2 Final//EN
ElementTABLE
Purposetabular presentation of information
DescriptionThis element is used to create tables of information. Inside the TABLE element, you can put a CAPTION and table rows (TR)s. The HTML 3.2 tables are a subset of RFC1942.
Start tagRequired <TABLE>
Attributes
NameTypeDefaultComment
align( left | center | right )#IMPLIEDtable position relative to window
border NUMBER #IMPLIEDinteger representing length in pixels; controls frame width around table in pixels
cellpadding NUMBER #IMPLIEDinteger representing length in pixels; spacing within cells in pixels
cellspacing NUMBER #IMPLIEDinteger representing length in pixels; spacing between cells in pixels
width CDATA #IMPLIEDnn for pixels or nn% for percentage length; table width relative to window in pixels or percent of available space
Content( CAPTION ? , TR + )
End tagRequired </TABLE>
Referenced in BLOCKQUOTE BODY CENTER DD DIR DIV FORM LI MENU TD TH
Example
SourceAppearance
<TABLE Border="3" Cellpadding="6" Cellspacing="1" Align="center">
<CAPTION>The XHTML Playoffs</CAPTION>
<TR> <TH>Game</TH> <TH>Entities</TH> <TH>Elements</TH> </TR>
<TR> <TD>1</TD> <TD>3</TD> <TD>2</TD> </TR>
<TR> <TD>2</TD> <TD>4</TD> <TD>1</TD> </TR>
<TR> <TD>3</TD> <TD>0</TD> <TD>8</TD> </TR>
<TR> <TD>4</TD> <TD>8</TD> <TD>7</TD> </TR>
<TR> <TD>5</TD> <TD>2</TD> <TD>1</TD> </TR>
</TABLE>
<P>
<TABLE border="1" Align="center" Width="100%">
<CAPTION align="bottom">Weekly Schedule</CAPTION>
<TR><TH rowspan="2">Tasks</TH>
<TH colspan="7">Days of the Week</TH></TR>
<TR> <TH>Mon</TH> <TH>Tue</TH> <TH>Wed</TH> <TH>Thu</TH> <TH>Fri</TH> <TH>Sat</TH> <TH>Sun</TH> </TR>
<TR> <TH>School</TH> <TD>&nbsp;</TD> <TD>CS111</TD> <TD>&nbsp;</TD> <TD>CS111</TD> <TD>&nbsp;</TD> <TD colspan="2" rowspan="2">Off</TD> </TR>
<TR> <TH>Work</TH> <TD colspan="2">december.com</TD> <TD colspan="3">Weekend Prep</TD> </TR>
</TABLE>
The XHTML Playoffs
Game Entities Elements
1 3 2
2 4 1
3 0 8
4 8 7
5 2 1

Weekly Schedule
Tasks Days of the Week
Mon Tue Wed Thu Fri Sat Sun
School   CS111   CS111   Off
Work december.com Weekend Prep
search Search · star Market
2023-06-19 · John December · Terms © johndecember.com