CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: <center> element

The <center> Element

AVOIDNot in HTML5Obsolete

The <center> element is a block-level element that can contain paragraphs and other block-level and inline elements. The content of this element is centered horizontally within its containing element. This element is deprecated in HTML4 and obsolete in HTML5. Instead, use the "text-align" CSS property.

Attributes for <center>
TypeAttribute List
'Standard' Attributes(none)

Notes

  • To center blocks, set margin-left and margin-right to auto (or set margin to 0 auto).

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem