Certified HTML Designer Learning Resources tr tag for Rows

Learning Resources
 

tr tag for Rows


The TR element


  %attrs;                              -- %coreattrs, %i18n, %events --
  %cellhalign;                         -- horizontal alignment in cells --
  %cellvalign;                         -- vertical alignment in cells --
  >

Start tag: required, End tag: optional

Attributes defined elsewhere

    id, class (document-wide identifiers)
    lang (language information), dir (text direction)
    title (element title)
    style (inline style information )
    onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events )
    bgcolor (background color)
    align, char, charoff, valign (cell alignment)

The TR elements acts as a container for a row of table cells. The end tag may be omitted.

This sample table contains three rows, each begun by the TR element:



...A header row...
...First row of data...
...Second row of data...
...the rest of the table...
Cups of coffee consumed by each senator

 For Support