Tell a Friend About Our Cool Software

HTML defines six levels of document headings, numbered from level 1 (the highest) to level 6. The higher the level, the larger the font used to display it. This is shown in Figure 3-5.
Figure 3-5. HTML defines six levels of document headings. Headings levels 5 and 6 are rarely used because they display so small--in any event it's a rare document that needs so many levels of headings! You create headings in your document with the tags <h1> for heading level 1 through <h6> for heading level 6. For example:
<body>
<h1>Jason's Web Page</h1>
<p>Welcome to my Web page. I hope you enjoy it!</p>
<h2>My family</h2>
<!-- images and text here-->
<h2>My hobbies</h2>
<!-- more images and text here-->
</body>
By default, paragraphs and headings in a Web page are left-aligned. For some Web page layouts, you may want to position them in the center, or even aligned on the right edge of the page. You accomplish this by including the align attribute in either the heading or the paragraph tag:
<p align="center">Centered paragraph text</p>
<h2 align="right">A right aligned heading</h2>
The align attribute is not supported in
XHTML and is deprecated in HTML 4.01. You should use styles to
control paragraph and heading alignment in your documents.