HTML and CSS Reference
In-Depth Information
Compatibility
HTML 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 3+,
Netscape 4+, Opera 4+, Safari 1+
Notes
• Under the strict HTML and XHTML specifications, the
object
element loses most
of its presentation attributes, including
align
,
border
,
height
,
hspace
,
vspace
,
and
width
. These attributes are replaced by style sheet rules.
• The HTML 4.01 specification reserves the
datafld
,
dataformatas
, and
datasrc
attributes for future use. However, these attributes were dropped in XHTML,
though they are well supported by Internet Explorer 4 and beyond.
• Alternative content should be defined within an
<object>
tag after any enclosed
<param>
tags.
• The
object
element is still mainly used to include multimedia binaries in pages.
Although the specification defines that it can load in HTML files, insert a variety of
other objects, and create image maps, not every browser supports this, and few
developers are aware of these features. In theory, this very versatile tag should take
over duties from the venerable
<img>
tag in future specifications, though given the
media-specific element trends of HTML5, this seems unlikely to happen.
<ol> (Ordered List)
This element is used to define an ordered or numbered list of items. The numbering style
comes in many forms, including letters, Roman numerals, and regular numerals. The
individual items within the list are specified by
li
elements included with the
ol
element.
Standard Syntax
<ol
class="class name(s)"
compact="compact" (transitional only)
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
start="number" (transitional versions and HTML5)
style="style information"
title="advisory text"
type="a | A | i | I | 1"> (transitional only)>
li elements only
</ol>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"