Description
The HTML element <param>
is used to define parameters to be passed at runtime to an embedded object defined using the <object>
element.
- The element
<object>
can contain any number of<param>
elements - All the
<param>
elements must be defined at the beginning of the<object>
content.
The below table summarizes its usage.
Usage Details | |
Placement | Parent elements are <object> and <applet> . |
Contents | None. It is an empty element. |
Tags | Opening tag: required; Closing tag: forbidden |
Versions | HTML 3.2, 4, 4.01, 5 |
Syntax
Here is the basic syntax of the <param>
element.
<param name="text">...</param>
Examples
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example - HTML Element param</title>
</head>
<body>
<object data="animal.wav">
<param name="autoplay" value="true">
</object>
</body>
</html>
Attributes
The following table shows the list of supported and unsupported attributes for the <param>
element.
Attribute Type | Details |
Element-Specific Attributes | The tag <param> has some element-specific attributes listed in the below table. |
Global Attributes | Like all other HTML tags, the tag <param> supports the HTML Global Attributes. |
Event Attributes | The tag <param> also supports the HTML Event Attributes. |
Here is a list of attributes that are specific to the <param>
element.
- Required attributes must be specified for the element to be valid.
Attribute | Value | Required | Description |
name |
text | Yes | Specifies the name of the parameter. |
value |
text | No | Specifies the value of the parameter. |
type |
content-type | No | Obsolete Specifies the content type of value attribute. |
valuetype |
data, ref, object | No | Obsolete Specifies the value type of value attribute. |
Browser Compatibility
The tag <param>
is supported in all modern browsers.
- Google Chrome 1+
- Internet Explorer or Edge 3+
- Firefox 1+
- Apple Safari 1+
- Opera 5+