HTML and CSS Reference
In-Depth Information
text="black"> ... </body>
<body onload="myLoadFunction()"> ... </body>
<body> ... </body>
HTML 2, 3.2, 4, 4.01, 5+
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+
Netscape 1+, Opera 2.1+, Safari 1+
• When defining text colors, it is important to be careful to specify both foreground
and background explicitly so that they are not masked out by browser defaults set
by the user.
• Under the strict HTML and XHTML definitions as well as HTML5, CSS should be
used in place of presentation attributes like alink , background , bgcolor , link ,
text , and vlink .
• This element must be present in all documents except those declaring a frame set.
• Under XHTML, the closing </body> tag is mandatory.
• HTML5 returns to the old style of making the element optional.
• HTML5 currently defines all common attributes for this element, though the meaning
of some in the context of the entire document is a bit unclear.
<br> (Line Break)
This empty element forces a line break.
Standard Syntax
class="class name(s)"
clear="all | left | none | right" (transitional only)
id="unique alphanumeric identifier"
style="style information"
title="advisory text">
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"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
Search WWH ::

Custom Search