HTML param Tag as the name suggests, defines the parameters for the object tag. By default param tag is hidden and it only controls the functionality of object tag using parameters.
Table of Contents
Syntax of HTML param Tag
The Syntax of HTML param Tag is shown below, It has only starting tag and no ending tag.
<param name="autoplay" value="true">
Usage of HTML param Tag
HTML param Tag is used to set parameters for the embedded object element. This can control some of the properties of object element.
Example of HTML param Tag
Simple example of HTML param Tag is given below.
<object data="music.mp3">
<param name="autoplay" value="true">
</object>
In above example we have used param tag to set the autoplay parameter of object tag to true. With this the embedded audio file will start playing automatically, once the page loads.
Browser Support for HTML param Tag
HTML param Tag is supported by all major browsers which include Chrome, Opera, Firefox, Edge, Internet Explorer and Safari.
Global Attributes Support in HTML param Tag
The HTML param Tag supports all Global Attributes.
Event Attributes Support in HTML param Tag
The HTML param Tag supports all Event Attributes.