<center>

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The CENTER element defines centered text.


<center>centering text</center>

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

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