Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 47,722,441 Downloads in 87 Countries

Tell a Friend About Our Cool Software

Buy the Book Here !

Chapter 3: Creating Headings


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.

Headings sizes

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>

Changing Paragraph and Heading Alignment (<center> and the align attribute)

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>

NO XHTML 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.


Table of Contents
Download Our Software:

... and don't forget about our Free Software

CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.