Category: Containers | Previous: H1 | Next: H3

<H2>

Description:

A heading. The h2 element is used to contain a level 2 heading.

Syntax:

<H2 ALIGN="LEFT"> ... </H2>

Attributes:

Attribute Value Description
ALIGN LEFT
CENTER
RIGHT
Sets the justification of the heading.

Notes:

Headings should not be used for character formatting.

Example:

<H2 ALIGN="CENTER"> Level 2 Heading </H2>


Level 2 Heading


Index: HTML Reference | Previous: H1 | Next: H3