Version-//W3C//DTD HTML 4.01//EN
ElementTABLE
Purposetabular presentation of information
DescriptionThis element is used to create tables of information.
Start tagRequired <TABLE>
Attributes
NameTypeDefaultComment
border CDATA #IMPLIEDinteger representing length in pixels; controls frame width around table
cellpadding CDATA #IMPLIEDnn for pixels or nn% for percentage length; spacing within cells
cellspacing CDATA #IMPLIEDnn for pixels or nn% for percentage length; spacing between cells
class CDATA #IMPLIEDspace-separated list of classes
datapagesize CDATA #IMPLIEDreserved for possible future use
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
frame( void | above | below | hsides | lhs | rhs | vsides | box | border )#IMPLIEDwhich parts of frame to render
idID#IMPLIEDdocument-wide unique id
lang NAME #IMPLIEDlanguage code as RFC1766; language code
onclick CDATA #IMPLIEDscript expression; a pointer button was clicked
ondblclick CDATA #IMPLIEDscript expression; a pointer button was double clicked
onkeydown CDATA #IMPLIEDscript expression; a key was pressed down
onkeypress CDATA #IMPLIEDscript expression; a key was pressed and released
onkeyup CDATA #IMPLIEDscript expression; a key was released
onmousedown CDATA #IMPLIEDscript expression; a pointer button was pressed down
onmousemove CDATA #IMPLIEDscript expression; a pointer was moved within
onmouseout CDATA #IMPLIEDscript expression; a pointer was moved away
onmouseover CDATA #IMPLIEDscript expression; a pointer was moved onto
onmouseup CDATA #IMPLIEDscript expression; a pointer button was released
rules( none | groups | rows | cols | all )#IMPLIEDrulings between rows and cols
style CDATA #IMPLIEDstyle sheet data; associated style info
summary CDATA #IMPLIEDtext; purpose/structure for speech output
title CDATA #IMPLIEDtext; advisory title
width CDATA #IMPLIEDnn for pixels or nn% for percentage length; table width
Content( CAPTION ?, ( COL *| COLGROUP *), THEAD ?, TFOOT ?, TBODY +)
End tagRequired </TABLE>
Referenced in BLOCKQUOTE BODY BUTTON DD DEL DIV FIELDSET FORM INS LI MAP NOSCRIPT OBJECT TD TH
Example
SourceAppearance
<TABLE frame="box" rules="groups" summary="The Results of the Big XHTML Playoffs.">
<CAPTION>The XHTML Playoffs</CAPTION>
<COLGROUP align="center">
<COL>
<COL style="background-color: #FFFFAA;">
<COL style="background-color: #BDFCC9;">
<THEAD>
<TR>
<TH>Game
<TH>Elements
<TH>Entities
<TFOOT style="background-color: #05FFFF;">
<TR>
<TD colspan="3">Entities Win!
<TBODY>
<TR><TD>1<TD>3<TD>0
<TR><TD>2<TD>5<TD>4
<TR><TD>3<TD>2<TD>8
<TR><TD>4<TD>7<TD>9
<TR><TD>5<TD>0<TD>1
</TABLE>

<P>
<TABLE border="1" Width="100%">
<CAPTION>Weekly Schedule</CAPTION>
<TR><TH rowspan="2">Tasks</TH>
<TH colspan="7" style="background-color: #FFFFAA;">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" style="background-color: #05FFFF;">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 Elements Entities
Entities Win!
130
254
328
479
501

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