Re: Very Basic Question

by Duif Calvin <duif(at)>

 Date:  Wed, 08 Sep 1999 08:01:51 -0400
 To:  Mac Fenwick <macfenwick(at)>,
"hwg-basics(at)" <hwg-basics(at)>
  todo: View Thread, Original
<DIV> just stands for "Division"--it means a section within the code which
you have grouped because of some common properties.  

Prior to stylesheets, for example, you could use 
<DIV align=center>

to center align several paragraphs at once.

This is particularly useful for dynamically-generated pages, where you know
you have a "section," but you don't know its exact contents ahead of time.

Although now with stylesheets the "align" attribute of DIV is deprecated,
DIV is still useful when combined with ID or CLASS. However, these are less
intuitive examples unless you're very familiar with CSS.

For a very good example of DIV used with class and stylesheets, see


At 07:17 AM 9/8/99 -0400, Mac Fenwick wrote:
>Can someone please explain to me the logic behind the <DIV> tag? Not the
>logic that drove it's creation in the first place, but the logic that it
>follows within the HTML code.
>I can see how it is probably better than <CENTER> etc, but I seem to be
>having troubles with it.
>Mac Fenwick
jaderiver(at)                    770-989-7407
Are you getting the right message to the right audience?            
Our consulting services can make any Website more effective.      All Services 100% Guaranteed

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA