Learning HTML 3.2 by Examples, section 5 Descriptions of HTML 3.2 tags:

TR - table row (Not in HTML 2.0!)

Purpose

To present a row in a table.

Typical rendering

A single row in a table.

Basic syntax

<TR>heading cells (TH elements) and data cells (TD elements)</TR>

In principle, the end tag </TR> can always be omitted. This is not recommendable, since some browsers (including Netscape) may act incorrectly when the end tag is omitted.

Possible attributes

attribute name possible values meaning notes
ALIGN LEFT, CENTER, RIGHT default horizontal alignment in cells can be overridden by ALIGN attributes in TH and TD elements
VALIGN TOP, MIDDLE, BOTTOM default vertical alignment in cells can be overridden by VALIGN attributes in TH and TD elements

Allowed context

TABLE element.

Contents

TH elements and TD elements.

Examples

<TR><TD>3.70 <TD>4.69 <TD>8.02 </TR>

Notes

See the discussion of tables, which contains additional examples, too.

Date of last update: 2010-12-16.
This page belongs to the free information site IT and communication, section Web authoring and surfing, by Jukka "Yucca" Korpela.