Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML object definition

Browser support
IEFFOpSaf
PartialPartialPartialPartial

Type: block-level element

Syntax

<object> ... </object>

Description

The object element is used to insert different objects such as images, audio, videos, Java applets and Flassh animations into the document.

Attributes

Attribute Description
classid = uri  
codebase = uri  
codetype = content-type  
data = uri The address to the object.
type = content-type The type of object that is inserted into the document.
archive = uri-list  
declare  
standby = text The text that will be shown when loading the object.

Common attributes.

The object element replaces the older more specific elements img, embed, bgsound and applet.

Example

[Try this example yourself]
<object id="sound" type="audio/x-ms-wma" standby="Loading Audio" data="filename.wma">
  <param name="autostart" value="true" />
  <param name="loop" value="true" />
</object>

Output

  • Comments

No comments added.