horizontal centering


<center>

Browser
Internet Explorer Firefox Opera
Type
Block-level Deprecated

The CENTER element defines centered text.


<center>centering text</center>


The use of this element is deprecated. (Use CSS instead)

Tips and Notes

Use CSS instead of deprecated HTML. Please see the "Related Document" for details on CSS.


Example

<center>Centering text</center>
Output
Centering text

<center>
<p>Centering text</p>
<p>Centering text</p>
<p>Centering text</p>
</center>
Output

Centering text

Centering text

Centering text