HTML <param> Tag

The <param> tag adds a parameter to an <object> element. It uses its name and value attributes to assign parameter values.




A <param> tag inside an object element.
It enables the object's autoplay value.

<object data="/media/sample.wav">
  <param name="autoplay" value="true">
param = parameter

Tip: Don't use <object> element to play audio. Use the <audio> tag instead.

Using <param>

The <param> tag is used to set parameters for an <object> element.

It uses the name and value attributes to assign parameter values.

The <param> element is self closing and does not use an end tag.

Tip: Chrome and Edge don't fully support the param element which makes configuring the object element difficult. It is usually best to use an alternative to object, such as audio, video, iframe, picture, or img.

More Examples

A <param> element.
It sets the resource's media type to application/pdf.

<object data="/media/contract.pdf" style="width:100%;height:450px;" >
   <param name="type" value="application/pdf" />

Attributes for <param>

This table lists the <param> tag attributes.

Attribute Value Description
name name Name of the parameter
value value Value of the parameter
id    identifier Defines a unique identifier for the param.

For additional global attributes see our global attributes list.

Obsolete Attributes

Do not use the attributes listed below.  They are no longer valid on the param tag in HTML5.

Attribute Description Alternative
type Specifies the media type if valuetype is ref. n/a
valuetype Specifies the type of the value: data, ref, or object. n/a

Browser support

Here is when <param> support started for each browser:

1.0 Sep 2008
1.0 Sep 2002
1.0 Aug 1995
1.0 Jan 2006
1.0 Jan 2003

You may also like