HTML - <param> Tag



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

The param tag controls the behavior of the object, and we can use more than one param tag within an object element but have make sure that the param tag is placed at the start of the content.

Syntax

<param name=" " value=" ">

Attribute

HTML param tag supports Global and Event attributes of HTML. Accepts some specific attributes as well which are listed below.

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

Examples of HTML param Tag

Bellow example will illustrate the usage of param tag. Where, when and how to use param tag.

Param element in Object Tag

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>

Supported Browsers

Tag Chrome Edge Firefox Safari Opera
param Yes Yes Yes Yes Yes
html_tags_reference.htm
Advertisements