declare attribute declares an object, but doesn’t
instantiate it, which may be useful for the purposes of deferring the
object’s download until it’s actually needed. In HTML, it’s not necessary
to include the attribute and value pairing—all we need is the attribute on
its own, as shown here:
<object data="giant-dog.jpg" declare type="image/jpeg" height="225"></object>
declare attribute, specified in XHTML-compliant
<object data="giant-dog.jpg" declare="declare" type="image/jpeg" height="225"></object>
"declare" is the
only value this attribute can take.
In all browsers
tested, the presence of the
declare attribute made
no difference at all—browsers instantiated the object regardless (in the
example above, an image of a large dog).
There are no comments yet.