July 1998
Intermediate to advanced
1456 pages
65h 5m
English
ID — NN 4 IE 4 HTML 4
ID=”elementIdentifier"Optional
A unique identifier that distinguishes this element from all the rest
in the document. Can be used to associate a single element with a
style rule naming this attribute value as an ID selector. An element
can have an ID assigned for uniqueness as well as a class for
inclusion within a group. A style sheet rule applied to a
FONT element overrides any directly assigned
attribute values. Therefore, you can define a set of font
characteristics for non-CSS-capable browsers and a modified version
for CSS-capable browsers in the same tag. See Chapter 3.
<FONT ID="specialFont3" COLOR="Olive">...</FONT>
Case-sensitive identifier.
None.
[window.]document.all.elementID.id
Read now
Unlock full access