HTML <param> tag

HTML <param> tag is used to pass the parameters to the object that has been embedded using <object> element.

We can use more than one <param> tag within an <object> element in any order, but each tag must contain name and value attribute and should be placed at the start of the content.

The <param> tag controls the behaviour of the <object> element using a different pair of the name of value attributes, such as autoplay, controller, etc.

Syntax

<param name=" " value="">  

Following are some specifications about the HTML <param> tag

DisplayInline
Start tag/End tagEmpty Tag(End tag forbidden)
UsageProgramming

Example

<!DOCTYPE html>  

<html>  

<head>  

<title>Param Tag</title>  

</head>  

<body>  

<h2>Example of Param Tag</h2>  

<object data="https://www.youtube.com/embed/JHq3pL4cdy4" >  

<param name="controller" value="true">  

</object>  

</body>  

</html>

Output:

HTML param tag

Attribute:

Tag-specific attributes:

AttributeValueDescription
NametextIt determines the name of the parameter.
valuetextIt determines the value of the parameter.
typecontent_typeIt specifies the media type of the parameter, and it only used if the valuetype is set to “ref.” (Not Supported in HTML5)
valuetypedatarefobjectIt determines the type of the value attribute. (Not Supported in HTML5)

Global attribute:

HTML <param> tag supports the global attributes in HTML.

Event attribute:

HTML <param> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<param>YesYesYesYesYes

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *