The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.
This article is Not Ready.
<center> element center-aligns text in an HTML page. The element is deprecated in HTML 4.01 and obsolete in HTML5. Use CSS instead.
This page exists for a history lesson only. The
<center> element has been removed from the specification. It is advised to use CSS instead; the properties text-align and margin may be a good place to start.
This example uses the
<center> element to center text on a page.
<center>This text appears centered on the page.</center>
This example uses the CSS property text-align to center the content of a
<div style="text-align: center">This text appears centered on the page</div>
Do not use this element anymore.
|HTML 4.01||W3C Recommendation||deprecated|
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]