The HTML Elements reference

"tr" - html element

  • This element defines a table row.
  • Starttag <tr> is Required and endtag </tr> is Optional
  • The element contains 'th' or 'td' elements, which in turn contain the actual cell data of the table.
  • Browsers that support the tr - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "tr" example:
<table   border='1'
cellpadding='0' cellspacing='0' >
<caption>Browser Accesskey usage  </caption>
  <tr>
    <th >Browser</th>
    <th >accesskey usage</th>
    <th >Remarks</th>
  </tr>
  <tr>
    <td align='center'  ><img src="../images/Firefox.png"
alt="" border="0"  title="Firefox"/></td>
    <td >Shift + Alt + accesskey</td>
    <td >Set the focus on the element and
execute any link (a) if exist.</td>
  </tr>
  <tr>
    <td align='center' ><img src="../images/IE.png"
alt="" border="0" title="Internet explorer" /></td>
    <td >Alt + accesskey</td>
    <td >Set the focus on the element.
Press enter to execute any link.</td>
  </tr>
</table>


Attributes:
align (deprecated), bgcolor (deprecated), char , charoff , class , dir , id , lang , style , title , valign

Attribute "align" value(s): depend on which element left, center, right, justify or char
  • Specifies the horizontal alignment of its element with respect to the surrounding context. Specifies the alignment of data and the justification of text in a cell.
  • You should use styles (CSS) instead.
Possible attribute, align, values for this element:
Attribute value description
left Left-flush data/Left-justify text. This is the default value for table data.
center Center data/Center-justify text. This is the default value for table headers.
right Right-flush data/Right-justify text.
justify Double-justify text.
char Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.