Version-//W3C//DTD XHTML 1.0 Transitional//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
bgcolor CDATA #IMPLIEDcolor code as #RRGGBB in hexadecimal or 16 named colors; background color for row
char CDATA #IMPLIEDalignment char, e.g. char=':'; a single character as per XML specification which defines a character as an atomic unit of text as specified by ISO/IEC 10646 [ISO/IEC 10646] (see also [ISO/IEC 10646-2000])
charoff CDATA #IMPLIEDoffset for alignment char; nn for pixels or nn% for percentage length; horizontal alignment in cells
class CDATA #IMPLIEDspace-separated list of classes
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
valign( top | middle | bottom | baseline )#IMPLIEDvertical alignment attributes for cell contents; vertical alignment in cells
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( th | td )+
End tagRequired </tr>
Referenced in table tbody tfoot thead
Example
SourceAppearance
<table border="3" cellpadding="3" cellspacing="3">
<caption>The XHTML Playoffs</caption>
<tr align="center">
<th>Game</th>
<th>Entities</th>
<th>Elements</th></tr>
<tr align="center">
<td>1</td>
<td>3</td>
<td>2</td></tr>
<tr align="center">
<td>2</td>
<td>4</td>
<td>1</td></tr>
<tr align="center">
<td>3</td>
<td>0</td>
<td>8</td></tr>
<tr align="center">
<td>4</td>
<td>8</td>
<td>7</td></tr>
<tr align="center">
<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
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.