center

FilterElements

<center> ... </center>

Deprecated in HTML 4.01/XHTML. Not in HTML5. Centers its contents horizontally in the available width of the page or the containing element. Use of this element is strongly discouraged in favor of style sheets for centering elements.

Start/End Tags

Required/Required

Specifications

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

Rendered Example

Introduction

Once upon a time . . .