HTML Division

[Return to HTML Index]

If you wanted to center each of the headers or all of the paragraphs without having to put the ALIGN="CENTER" tag for each heading or paragraph, you could use the division tags <DIV> and </DIV>.  The example below shows the same content using the <DIV> tags:

<HTML>

<HEAD>
<TITLE>
What you put here is what appears at the top of the browser window (in the blue section) AND it is what the page is called when you add a bookmark for it
</TITLE>
</HEAD>

<BODY>

<DIV align="center">
<H1>This is H1</H1>
<H2>This is H1</H2>
<H3>This is H1</H3>
<H4>This is H1</H4>
<H5>This is H1</H5>
<H6>This is H1</H6>
</DIV>

<DIV align="left">
<p>Then you put the paragraph content.  You can intermingle paragraphs, line breaks, and headings throughout the body of your work.</p>
</DIV>

<P align="right">End of page</p>


</BODY>

</HTML>

The HTML in this sample will produce the same effect as the alignment tag with fewer keystrokes!:

This is H1

This is H2

This is H3

This is H4

This is H5
This is H6

Then you put the paragraph content.  You can intermingle paragraphs, line breaks, and headings throughout the body of your work

End of page

[USING THE ALIGNMENT TAG]


COMMENTS (in other words, documentation) for your HTML.  Use:

<COMMENT><!-- put your remarks here --></COMMENT>

Start NOW to document your pages so that when you go back to them, those tricky items like tables within tables within tables won't come back to haunt you!  Anything between <COMMENT> AND </COMMENT> will not show up on your page.  You will only see it if you view the source for the page.

[CF]     [CBA2]     [PBA]      [CPB]     [Return to HTML Index]      [SEND E-MAIL]     [RETURN TO MS GUNN'S SCHOOL PAGE]

Designed, programmed, edited and copyrighted by Ms Gunn � 1998