The HTML Artwork Heading Examples

There are six levels of headings defined in HTML. The lower the number, the larger the header will be. Thus, H1 is the largest header, and H6 is the smallest.


Level 1 Heading, H1

Level 2 Heading, H2

Level 3 Heading, H3

Level 4 Heading, H4

Level 5 Heading, H5
Level 6 Heading, H6

ALIGN Attribute

An ALIGN attribute was added to the heading tags in HTML 3.2. The value for ALIGN may be set to LEFT, CENTER and RIGHT. Here is an example of an H2 heading with each attribute:

ALIGN=LEFT

ALIGN=CENTER

ALIGN=RIGHT


Alignment with inline style sheets.

STYLE="text-align:right"

STYLE="text-align:center"

STYLE="text-align:left"


[HTML CD Home Page]

Vivian Neou, vivian@catalog.com
Copyright © 1999 Vivian Neou