The HTML Artwork Centering: <CENTER>


The CENTER tag was introduced by Netscape, and originally was the only way to center text or objects. Although this capability is now available through the ALIGN=CENTER attribute with many HTML elements, the widespread use of CENTER resulted in its inclusion in the HTML 3.2 standard. CENTER may be used to center single paragraphs, or sections of a document.

To use it, simply place the opening CENTER tag before the element(s) that are to be centered, and then close it after you are done. For example, here is a single line:

Here is some centered text!

Now we use 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