HTML 4.0 Logo Reader Icon OEB 1.0 Logo PPC Logo <center>Center

Deprecated. This tag is equivalent to <div align=”center”>.  It centers text horizontally; the use of the CSS property text-align:center is preferred.

Attributes

class, id, lang, style, title (ignored)

Sample

Centering Sample diagram

Sample Code

<h3><a name="center.htm">Centering</a></h3> The &lt;center&gt; tag centers text horizontally. <hr width="30%" /> <br /> <center> Indignor quicquam reprehendi, non quia crasse compositum illepedeve putetur, sed quia nuper, nec veniam antiquis, sed honorem et praemia posci. </center>

Sample

Center Sample diagram

Sample Code

<h3>Center</h3> The following is the same text, but with line break tags at the end of each clause.<br /> <hr width="30%" /> <br /> <center>Indignor quicquam reprehendi,<br /> non quia crasse compositum illepedeve putetur,<br /> sed quia nuper,<br /> nec veniam antiquis,<br /> sed honorem et praemia posci.<br /> </center>

© 2000 Microsoft Corporation. All rights reserved. Terms of use.