Webpage Workshop: Home » HTML language reference » Object parameter

Object parameter

Parameters are used to pass data to an embedded object or applet. The exact content of this element and its attributes depends on the type of object that it is a parameter to.

<param
    id="unique identifier"
    name="parameter name"
    type="MIME type"
    value="parameter value"
    valuetype="data | object | ref"
>

Key:
‡ = Required attribute
** = Transitional only

Explanation of attributes

id: used to specify a unique alphanumeric identifier to the element. This is usually used in combination with stylesheets in order to apply a style to one particular instance of an element. Only one element, regardless of type, can be given a particular id.

name: used to specify the name of the parameter. The name of he parameter is dictated by the type of object that is being used, that is the parameter is used to pass some data to the object, and the object is expecting specifically named parameters.

type: this attribute is used when the value of the valuetype attribute is set to ref. It is used to specify the MIME type of the linked resource specified in the value attribute.

value: used to specify the value of the parameter. The exact format this attribute's value takes depends on the object type and the specific parameter that is being passed to it.

valuetype: this attribute is used to specify the type of attribute that is being used. It can have three possible values: data, object, or ref. The value data indicates that the value of the parameter is simply data to be used by the object - this is the default value for this attribute in many browsers. A value of object specifies that the value of the parameter is the ID of another object used in the document. The ref value indicates that the value of the parameter is a URL that can be passed to the object, which may then retrieve that URL. In this case, the type attribute may also be used.

Event handlers

No event handlers are defined for this element.

Compatibility

Description: Support of object parameter and attributes in various browsers
Test Internet Explorer 6+ Netscape 4 Mozilla and Netscape 6+ Opera 6+ MSN TV (WebTV) Konqeuror 3.0+
Basic element support  Yes  Yes  Yes  Yes  No  Yes 
Attribute: id  Yes  Yes  Yes  No 
Attribute: name  Yes  Yes  Yes  Yes  No  Yes 
Attribute: type  Yes  No  Yes  No 
Attribute: value  Yes  Yes  Yes  Yes  No  Yes 
Attribute: valuetype  Yes  No  Yes  No 

Key:
The browser icons are explained in the below list:
Internet Explorer 6+ = Microsoft Internet Explorer 6+
Netscape 4 = Netscape Communicator 4
Mozilla and Netscape 6+ = Mozilla and Netscape Navigator 6+
Opera 7+ = Opera 7+
MSN TV (WebTV) = MSN TV (aka. WebTV)
Konqeuror 3.0+ = Konqueror 3.0+