HTML <param>Tag


Examples

Set the parameter "autoplay" to "true", the audio will automatically play after loading:

<object data="horse.wav">
  <param name="autoplay" value="true">
</object>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <param> tag is supported by most mainstream browsers. However, not all browsers support the file formats defined by <object>.


Definition and Usage

The <param> element allows you to specify run-time settings for an object inserted into an XHTML document, that is, this tag can provide parameters for its containing<object>or<applet>tag.


Differences between HTML 4.01 and HTML5

HTML 4.01 attributes: "type" and "valuetype" are not supported in HTML5.


Differences Between HTML and XHTML

In HTML, the <param> tag has no end tag.

In XHTML, the <param> tag must be properly closed.


Attributes

Attributes Value Description
name name Defines the name of the parameter (used in scripts).
type MIME_type Not supported in HTML5.Defines the MIME type of the parameter.
value value Describes the value of the parameter.
valuetype data
ref
object
Not supported in HTML5.Describes the type of the value.


Global Attributes

The <param> tag supports global attributes, view the full attribute tableHTML Global Attributes。


Event Attributes

The <param> tag supports allHTML Event Attributes。

Other Extensions