Summary -
In this topic, we described about the <param> tag along with detailed example.
Passes the parameters to plugin. Used mostly with <object> tag. <param> tag is supported by all browsers. The tag can be specified like <param name="" value=""></param>.
Both name and value attributes are required. The <param> should be coded within an <object> tag. The <param> tag has no end tag as it has no content.
Syntax -
<param name="" value=""></param>
Required Attributes -
Attribute | Description | Values |
---|---|---|
name | Specifies the parameter name | Text. |
value | Specifies the parameter value | Text. |
Optional Attributes -
Attribute | Description | Values |
---|---|---|
Type | Specifies the parameter media type.Not supported in HTML5 | Media_type |
Valuetype | Specifies the value type.Not supported in HTML5 | DataRefObject |
Example -
<!DOCTYPE html>
<html>
<head>
<title>param tag example..</title>
</head>
<body>
<object data="audio/new.mp3">
<param name="autoplay" value="true">
</object>
</body>
</html>
Output -
Note! Audio track will be auto played if the Audio controls allowed on the page. Unmute to hear the audio.