HTML and CSS Reference
In-Depth Information
Compatibility
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
Notes
• The HTML 4.01 strict and HTML5 specifications remove support for the align ,
noshade , size , and width attributes for horizontal rules. These effects are possible
using style sheets.
• As an empty element under XHTML or when using XML-style syntax for HTML5, a
trailing slash is required for this element: <hr /> .
<html> (HTML Document)
This element identifies an HTML or XHTML document.
Standard Syntax
<html
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
xmlns="http://www.w3.org/1999/xhtml | some other name space">
</html>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
class="class name(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
manifest="URL"
spellcheck="true | false"
style="style information"
tabindex="number"
title="advisory text"
Attributes Defined by Internet Explorer
class="class name(s)" (4)
scroll="yes | no | auto" (6)
version="version info" (6)
Search WWH ::




Custom Search