HTML provides six level of document headings, numbered from
1 (the highest) to level 6. The greater the level chosen, the larger the font
size displayed. Heading level 5 and 6 are rarely used because their display
appears very small. You create headings in your document with the tags
<h1> for heading level 1 through <h6> for heading level 6.
Next figure shows how headings h1 to h6 is shown in browser:
Paragraph and Heading
Alignment
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 attribute in either the heading or the paragraph tag:
<p> align=”center”>Paragraph is centered </p> <h2 align=”right”>Heading is right aligned</h2>
Note
The align attribute is
not supported XHTML and is not recommended in HTML 4.01. You should use styles
to control paragraph and heading alignment.

0 comments:
Post a Comment