Name

center — <center> . . . </center>

Deprecated. Centers its contents horizontally in the available width of the page or the containing element. It has been deprecated in favor of stylesheets for alignment.

Attributes

Core, Internationalization, Events

Example

<center>
    <h1>Introduction</h1>
    <p>Once upon a time . . . </p>
</center>

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.