Version-//W3C//DTD HTML 4.01//EN
ElementTR
Purposetable row
DescriptionThis is the table row element. Use this in the TABLE element to hold the cells of table data (TD) or table headers (TH).
Start tagRequired <TR>
Attributes
NameTypeDefaultComment
align( left | center | right | justify | char )#IMPLIEDhorizontal alignment of cell contents
char CDATA #IMPLIEDa single character from ISO10646 (see RFC1815); alignment char, e.g. char=':'
charoff CDATA #IMPLIEDnn for pixels or nn% for percentage length; offset for alignment char; horizontal alignment in cells
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
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
style CDATA #IMPLIEDstyle sheet data; associated style info
title CDATA #IMPLIEDtext; advisory title
valign( top | middle | bottom | baseline )#IMPLIEDvertical alignment in cells
Content( TH | TD )+
End tagOptional </TR>
Referenced in TBODY TFOOT THEAD
Example
SourceAppearance
<TABLE Border="3" Cellpadding="3" Cellspacing="3">
<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>
The XHTML Playoffs
Game Entities Elements
1 3 2
2 4 1
3 0 8
4 8 7
5 2 1
Save this page to any social bookmarking site! Share · Search · Market · Directory
2013-04-15 · John December · Contact · Terms of Use © December Communications, Inc.