Name

<TR> — NN all IE all HTML all

Synopsis

<TR>...</TR>

End Tag: Optional

A TR element is a container for one row of cells. Each cell within a row may be a TH or TD element. Every row requires at least a start tag to instruct the browser to begin rendering succeeding cell elements on the next line of the table. Other special-purpose row groupings available are the TFOOT and THEAD, as well as the more generic TBODY grouping element.

Example

<TABLE COLS=3>
<THEAD>
<TR>
<TH>Time<TH>Event<TH>Location
</TR>
</THEAD>
<TBODY>
<TR>
<TD>7:30am-5:00pm<TD>Registration Open<TD>Main Lobby
</TR>
<TR>
<TD>9:00am-12:00pm<TD>Keynote Speakers<TD>Cypress Room
</TR>
</TBODY>
</TABLE>

Object Model Reference

IE

[window.]document.all.elementID

Attributes

ALIGN

BORDERCOLORDARK

CHAROFF

ID

STYLE

BGCOLOR

BORDERCOLORLIGHT

CLASS

LANG

TITLE

BORDERCOLOR

CHAR

DIR

LANGUAGE

VALIGN

Event Handler Attributes

Handler

NN

IE

HTML

onAfterUpdate

n/a

4

n/a

onBeforeUpdate

n/a

4

n/a

onBlur

n/a

4

n/a

onClick

n/a

4

4

onDblClick

n/a

4

4

onDragStart

n/a

4

n/a

onFocus

n/a

4

n/a

onHelp

n/a

4

n/a

onKeyDown

n/a

4

4

onKeyPress

n/a

4

4

onKeyUp

n/a

4

4

onMouseDown

n/a

4

4

onMouseMove

n/a

4

4

onMouseOut

n/a

4

4

onMouseOver

n/a

4

4

onMouseUp

n/a

4

4

onResize

n/a

4

n/a

onRowEnter

n/a

4

n/a

onRowExit

n/a

4

n/a

onSelectStart

n/a

4

n/a

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.