Fandom

Center

648pages on
this wiki
Add New Page
Comments0 Share

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.

AttributesEdit

Global Attributes

See Global HTML Attributes.

ReferencesEdit

  1. DIV and CENTER in HTML 3.2
  2. The CENTER element in HTML 4

External linksEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.