section 2: formatting paragraphs


Using headlines

Up to now we have been using only simple text which doesn't stand out in any way. HTML defines 6 levels of HEADLINES. There are 6 sets of tags, one for each size of headline. These can be seen below.

<H1>This line is written in HEADLINE 1 style</H1>

<H2>This line is written in HEADLINE 2 style</H2>

<H3>This line is written in HEADLINE 3 style</H3>

<H4>This line is written in HEADLINE 4 style</H4>

<H5>This line is written in HEADLINE 5 style</H5>
<H6>This line is written in HEADLINE 6 style</H6>

Like the P and PRE tags, there is a half line seperation above and below each line. These styles can be used to create titles and sub titles for each page. The example below show how...

<BODY>
<H1>Title of this page</H1><BR>
<H3>Sub-title number 1</H3>
<P>This is the first section of the page, it just consists of 1 paragraph.</P>
<H3>Sub-title number 2</H3>
<P>This is the second section of the page.</P>
</BODY>

Next: Rules to seperate sections of a page

back start next