HTML & CSS Wiki
Advertisement

This deprecated, presentational element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.



The HTML <center></center> element is a block-level element which contains paragraphs and other block-level and inline elements. The entire content of this element is centered horizontally within its containing element (typically, the body). This element has been deprecated in HTML 4 (and XHTML 1) in favor of the CSS declarations text-align:center; to align inline content within a block-level element or margin: 0 auto; (with a width defined) for the element itself.

Attributes[]

Global Attributes

See Global HTML Attributes.

References[]

External links[]

Advertisement