HTML - <param> Tag



The HTML <param> tag is used for passing parameters to an embedded object using <object> tag.

This tag is no longer recommended, still some browsers might still support it.

Example

Consider the following example, where we are going to use the param tag.

<!DOCTYPE html>
<html>
   <body>
      <object data="https://cdn.pixabay.com/vimeo/497754241/laptop-61037.mp4?width=640&hash=d25d7f4b8afa862b3252bdaeaf157934ceb1bb72">
         <param name="video" value="play">
      </object>
   </body>
</html>

On running the above code, the output window will pop up displaying the video on the webpage.

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <param> tag also supports the following additional attributes −

Attribute Value Description
name parameter type Defines a unique name for the parameter.
type MIME type Specifies the internet media type for the parameter.
value value Specifies the value of the parameter.
valuetype data
ref
object
Specifies the MIME type of the value.

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Advertisements