HTML and CSS Reference
In-Depth Information
Examples
<center> This is in the center of the page. </center>
<center>
<p> Larry </p>
<p> Curly </p>
<p> Moe </p>
</center>
Compatibility
HTML 3.2, 4, 4.01 (transitional)
XHTML 1.0 (transitional)
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
Notes
• 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.
<cite> (Citation)
This element indicates a citation from a topic or other published source and usually is
rendered in italics by a browser.
Standard Syntax
<cite
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text">
</cite>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
Search WWH ::




Custom Search