CENTER Element



Netscape introduced the <CENTER> element to permit center alignment of block of text, figures, etc. They did this because there was a bug in several other browsers such that expressions like <P ALIGN="center"> broke the browser.

Particularly Useful Uses

<CENTER> does not introduce vertical spacing, so you can use this tag to center text between two closely spaced HRs. You can also use CENTER to center TABLEs.

Example of CENTER

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

Here is some centered text.....

Madam Im Adam.

To get a bit more fancy...
here is a single-celled table!