DIV tag for general alignments



The <DIV> tag is primarily used to create "divisions" within an HTML document which require the same alignment attribute. As a result, the <CENTER> tag is being phased out.

Like the paragraph <P> tag, the attributes are:
ALIGN = "left" | "center" | "right" | "justify"
ALIGN controls the alignment of objects between the opening <DIV> and closing </DIV> tags.

Example of DIV and how to use it to center objects

<DIV ALIGN="center">
Here is some centered text.....<BR> 
Madam Im Adam.<BR>
To get a bit more fancy...<BR>
<TABLE BORDER> 
<TR> <TD> here is a single-celled table! </TD> </TR> 
</TABLE>
</DIV>
which is displayed as:

Here is some centered text, and we're not using the CENTER tag.....
Madam Im Adam.
To get a bit more fancy...
here is the same single-celled table!