You are here: Reference > HTML > attributes > DECLARE (applet, object)

DECLARE attribute (applet, object)

Browser support:
Sets whether an object is only a declaration (it isn't downloaded until it's needed).
There isn't any functionality implemented for this attribute.
JavaScript page for this attribute: declare. You can find other example(s) there.

Possible values:

This attribute has no values.
Specifying the DECLARE attribute with an arbitrary value has the same effect as specifying it with no value.
For example, all of the following declarations have the same effect: declare, declare="true", declare="false", declare="on", declare="declare".
Although Boolean attributes may be used with no value in HTML, for XHTML compatibility, always use the DECLARE attribute in the following format: declare="declare".

Example HTML code 1:

This example illustrates the use of the declare attribute:
<object data="bg.jpg" width="66px" height="64px" type="image/jpeg" declare="declare">
</object>
<object type="application/x-java-applet" code="ImageViewer.class" width="200px" height="50px">
    <param name="background" value="#bgimage" valuetype="object" />
</object>
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content