Definition
The <param> tag is used to specify parameters for an <object> element.
Example
<object
type="video/webm"
data="https://file-examples-com.github.io/uploads/2020/03/file_example_WEBM_1920_3_7MB.webm"
width="250"
height="200"
>
<param name="autoplay" value="false" />
</object>Usage
- THe
<param>element is used to control an<object>element in some way by passing a parameter to a browser plugin. The example passes a<param>of autoplay to enable the video to start playing on page load automatically. - It is an empty element. A start tag is required, with no closing tag.
- Both the
nameandvalueattributes must be present. - The
<param>element must be a child of a<object>element.
Attributes
The <param> element supports the Global Attributes, as well as the following:
nameThe
nameattribute specifies the name of the parameter.valueThe
valueattribute specifies the value of the parameter.
Specification
Browser Support
Desktop
| Chrome | Edge | Firefox | IE | Opera | Safari |
|---|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Yes | Yes |
Mobile
| Android Webview | Chrome Android | Firefox Android | Opera Android | iOS Safari | Samsung Internet |
|---|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Yes | Yes |
