FORMAT Elements

Text can be formatted in many different ways under HTML 2.0 and 3.2. Formatting Commands include:

Center Element

The CENTER element is used to center text. It is identical to the DIV element with the ALIGN = Center attribute. Except for those with alignment attributes, it will center all text and elements enclosed. It is the only way to present a centered table under Netscape 2.0 and 3.0.

It can be in:

It can contain:

Note: The proposed HTML 3.2 standard does not list what can be contained in Center nor what Center can contain. The above is taken from descriptions pertaining to Netscape implementations.

Syntax:

<CENTER>...</CENTER>

DIVISION Element

Syntax:

<DIV> ... </DIV>

HEADING Commands

The H1 allows one to specify a heading on a screen. H2 through H6 are the lower levels of headings. Screen-oriented browsers typically present the Heading as a bold font of decreasing sizes with H1 being the largest and H6 the smallest.

It can be in:

It can contain:

Syntax:

<H1> ... </H1>

Horizonal Rule Element

The HR draws a horizonal line across the screen.

It can be in:

It can contain:

Syntax:

<HR>

Line Break Element

The BR Element breaks a line on the screen. It functions like a carriage return in traditional documents.

It can be in:

It can contain:

Syntax:

<BR>