The <Hx> and </Hx> tags create different levels (from 1 to 6) of emphasized headlines. The value of x can be 1, 2, 3, 4, 5, or 6.

Click here to review how the following document appears in a Web browser.

<HTML>
<HEAD>
<TITLE>Enter the Page Title Here</TITLE>
</HEAD>
<BODY>
<H1>This is Level 1 Heading</H1>
<H2>This is Level 2 Heading</H2>
<H3>This is Level 3 Heading</H3>
<H4>This is Level 4 Heading</H4>
This is Regular Text
<H5>This is Level 5 Heading</H5>
<H6>This is Level 6 Heading</H6>
</BODY>
</HTML>

Note that a heading tag has the additional effect of a <P> tag, and the Web browser will place the heading text on a single line by itself.

 

Heading text can be aligned by using the align attribute of the <Hx align=value> and </Hx> tags. The value of the align attribute can be "left", "center", or "right".

Click here to review how the following document appears in a Web browser.

<HTML>
<HEAD>
<title>Enter the Page Title Here</title>
</HEAD>
<BODY>
<H2 align="left">This is Level 2 Heading Left-aligned</H2>
<H2 align="center">This is Level 2 Heading Center-aligned</H2>
<H2 align="right">This is Level 2 Heading Right-aligned</H2>
</BODY>
</HTML>