VersionW3C//DTD HTML 3.2 Final//EN
ElementTD
Purposehorizontal alignment; vertical alignment; table data cell
DescriptionThis element encloses data in a table's cell. The data is contained in a table row (TR) which is contained in a TABLE.
Start tagRequired <TD>
Attributes
NameTypeDefaultComment
align( left | center | right )#IMPLIEDhorizontal alignment
colspan NUMBER 1number of cols spanned by cell
height NUMBER #IMPLIEDinteger representing length in pixels; suggested height for cell in pixels
nowrap( nowrap )#IMPLIEDsuppress word wrap
rowspan NUMBER 1number of rows spanned by cell
valign( top | middle | bottom )#IMPLIEDvertical alignment
width NUMBER #IMPLIEDinteger representing length in pixels; suggested width for cell in pixels
Content( H1 | H2 | H3 | H4 | H5 | H6 | #PCDATA | TT | I | B | U | STRIKE | BIG | SMALL | SUB | SUP | EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE | A | IMG | APPLET | FONT | BASEFONT | BR | SCRIPT | MAP | INPUT | SELECT | TEXTAREA | P | UL | OL | DIR | MENU | PRE | DL | DIV | CENTER | BLOCKQUOTE | FORM | ISINDEX | HR | TABLE | ADDRESS )*
End tagOptional </TD>
Referenced in TR
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">
<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
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.