HTML and CSS Reference
<center> This is in the center of the page. </center>
<p> Larry </p>
<p> Curly </p>
<p> Moe </p>
HTML 3.2, 4, 4.01 (transitional)
XHTML 1.0 (transitional)
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
• The center element defined by the W3C is a shorthand notation for <div
align="center"> . The content model for this element is odd, as the <center> tag
is often found enclosing large sections of content or fragments. Typically, it has been
noted that page authors who tend to use the element don't care about the content
model and use tags out of context freely.
• The strict versions of HTML and XHTML do not include the center element, but it
is easily imitated with the text-align CSS property.
• HTML5 defines the center element as obsolete.
• HTML 3.2 does not support any attributes for this element.
This element indicates a citation from a topic or other published source and usually is
rendered in italics by a browser.
dir="ltr | rtl"
id="unique alphanumeric identifier"
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
draggable="true | false | auto"