Executable Content Tags



One of the ways in which Web pages have become more dynamic is through their support of executable content, such as Java applets and ActiveX controls. These page elements are downloaded to the browser and run in its memory space to produce dynamic content on the browser screen. For placing executable content in web page, HTML uses <APPLET> tag (for Java applets), <OBJECT> tag (for other executable objects) and <PARAM> tag (for passing parameters to applet and object tags).


Tag
Function
<APPLET>
(Container tag)
(Attributes – 11)
Places a Java applet on a page. The <APPLET> tag has been deprecated in favor of using the more generic <OBJECT> tag to place applets
<OBJECT>
(Container tag)
(Attributes – 1)
Places an executable object on a page
<PARAM>
(Standalone)
(Attributes – 5)
Passes a parameter to a Java applet (<APPLET>) or other executable object (<OBJECT>)

Tag: <APPLET>
Attribute
Description and values
ALIGN
Positions adjacent text at the TOP, MIDDLE, or BOTTOM of the applet window, or can float the window in the LEFT or RIGHT margin
ALT
Provides a text-based alternative to the applet
ARCHIVE
comma-delimited list of archive locations
CODE
Specifies the class file
CODEBASE
URL of the code
HEIGHT
Specifies the height of the applet window in pixels. HEIGHT is a required attribute of the <APPLET> tag
HSPACE
Controls the amount of whitespace (in pixels) to the left and right of the applet window
NAME
Gives the applet a unique name so that it can be referenced by other Java applets
OBJECT
Provides the name of a serialized applet file
VSPACE
Controls the amount of whitespace (in pixels) above and below the applet window.
WIDTH
Specifies the width of the applet window in pixels. WIDTH is a required attribute of the <APPLET> tag.

Tag: <OBJECT>
Attribute
Description and values
ALIGN
Controls how content adjacent to the object area is aligned
WIDTH and HEIGHT
Specifies the dimensions of the object area as a number of pixels or as a percentage of available space
BORDER
Border thickness in pixels
HSPACE and VSPACE
Controls the amount of whitespace around the object area
ARCHIVE
Comma-delimited list of archive locations
CLASSID
Identifies which implementation or release of the object is being used
CODEBASE
URL of the object
CODETYPE
Describes the code's MIME type
DATA
List of URLs where data for the object can be found
DECLARE
Instructs the browser to declare, but not instantiate, a flag for the object
STANDBY
Enables to display a message to the user while the object is loading
TYPE
Specifies the MIME type of the data passed to the object
USEMAP
Points to client-side map data, if imagemaps are used

Tag: <PARAM>
Attribute
Description and values
ID
Assigns a unique identifying name to the parameter
NAME
Provides the name of the parameter
TYPE
Tells the browser what the parameter's Internet media (MIME) type is
VALUE
Specifies the value of the parameter
VALUETYPE
Provides more detail about the nature of the VALUE being passed and can be set to DATA, REF, or OBJECT