July 1998
Intermediate to advanced
1456 pages
65h 5m
English
ID — NN n/a IE 4 HTML n/a
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. See Chapter 3.
If you assign an ID attribute and not a
NAME attribute, the value of the
ID attribute can be used as the
EMBED element’s name in Internet Explorer
script reference forms that use the element name
(document.all.embedName).
<EMBED ID="jazzSound" SRC="jazz.aif" HEIGHT=15 WIDTH=25></EMBED>
Case-sensitive identifier.
None.
[window.]document.embeds[i].id
[window.]document.elementID.id
Read now
Unlock full access