A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/center below:

center ยท WebPlatform Docs

center Summary

The <center> element center-aligns text in an HTML page. The element is deprecated in HTML 4.01 and obsolete in HTML5. Use CSS instead.

Overview Table
DOM Interface
HTMLElement

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.

Examples

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>.

<div style="text-align: center">This text appears centered on the page</div>
Usage
 Do not use this element anymore.
Related specifications
HTML 4.01
W3C Recommendation
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4