The HTML Artwork HTML Sections: <DIV>


DIV is similar to P, but acts on a section of text and/or objects, and so may have other elements embedded within it. It has a single attribute, ALIGN, which may take the values LEFT, RIGHT or CENTER. DIV with ALIGN=CENTER is equivalent to the CENTER tag.

Right aligned section of text.
Center aligned section of text.
Left aligned section of text.

Now we use <DIV ALIGN=CENTER> to center a table, heading and image:


The Thrill of Kayaking

New Zealand Kayaking Locations
South Island RiversNorth Island Rivers
Shotover Rangitikei
Buller Mohaka
Karamea

[Kayak Logo]


The DIV tag with the ALIGN=CENTER attribute provides an alternate method of centering text and objects that is more in keeping with the original HTML design methodolgy. However, DIV is a fairly new tag, and CENTER still is probably more widely supported.


[HTML CD Home Page]

Vivian Neou, vivian@catalog.com
Copyright © 1999 Vivian Neou