What Is "object" Element?

This section describes what is HTML 'object' element - An HTML 4 element that can be used to include a generic object inside a HTML document.

What Is <object> Element? <object> is an HTML 4 element defined in the specification as an all-purpose solution to generic object inclusion in HTML documents. Here is what included in the specification document: "The OBJECT element allows HTML authors to specify everything required by an object for its presentation by a user agent: source code, initial values, and run-time data. In this specification, the term "object" is used to describe the things that people want to place in HTML documents; other commonly used terms for these things are: applets, plug-ins, media handlers, etc."

Here is the DTD (Document Type Definition) of the <object> element:

<!ELEMENT OBJECT - - (PARAM | %flow;)*
 -- generic embedded object -->
<!ATTLIST OBJECT
 %attrs;                         - %coreattrs, %i18n, %events
 declare  (declare)     #IMPLIED - declare but don't instantiate flag 
 classid  %URI;         #IMPLIED - identifies an implementation
 codebase %URI;         #IMPLIED - base URI for classid, data, archive
 data     %URI;         #IMPLIED - reference to object's data
 type     %ContentType; #IMPLIED - content type for data
 codetype %ContentType; #IMPLIED - content type for code
 archive  CDATA         #IMPLIED - space-separated list of URIs
 standby  %Text;        #IMPLIED - message to show while loading
 height   %Length;      #IMPLIED - override height
 width    %Length;      #IMPLIED - override width
 usemap   %URI;         #IMPLIED - use client-side image map
 name     CDATA         #IMPLIED - submit as part of form
 tabindex NUMBER        #IMPLIED - position in tabbing order
 >

Note that:

See next sections on tutorial examples on how to use <object>.

Last update: 2014

Table of Contents

 About This Book

 Introduction of Adobe Flash

 Adobe Flash Player Plugin for Firefox

 Adobe Flash Player Plugin for Chrome

 Adobe Flash Player Plugin for Safari

 Adobe Flash Player ActiveX for IE

Using "object" Elements for Flash Files

What Is "object" Element?

 Displaying Images as "object" Elements - Example

 Displaying Images as "object" Elements on Firefox 26

 Displaying Images as "object" Elements on IE 10

 Playing Flash as "object[@data]" - Example

 Playing Flash as "object[@data]" on Firefox 26

 Playing Flash as "object[@data]" on IE 10

 Playing Flash as "object[@classid]"

 Playing Flash as "object[@classid]" - Example

 Playing Flash as "object[@classid]" on Firefox 26

 Playing Flash as "object[@classid]" on IE 10

 Playing Flash with Nested "object" Elements

 Playing Flash with a Single "object" Element

 Using "embed" Elements for Flash Files

 "mp3player" - MP3 Music Player

 SWFObject - Hidding "object" behind JavaScript

 Flash Player Projector

 SWFTools - SWF File Manipulation Tools

 SWFC Script to Generate Flash SWF Files

 ActionScript Embedded in SWFC Script

 AS3Compile - ActionScript 3 Compiler

 Adobe Flex SDK 4

 SWF File Structure and Tags

 SWF File Processing Rules

 SWF Files for Video and Audio Streams

 Outdated Tutorials

 References

 PDF Printing Version