<param>

The HTML <param> element defines settings or configuration values for embedded content within an <object> element, though it is now largely obsolete and replaced by modern methods.

param tag

The <param> tag in HTML specifies parameters for <object>, <applet>, or <embed> elements. It provides initialization values or configuration settings for embedded content like multimedia players, plugins, or Java applets.

Syntax

index.html
<object data="movie.swf" type="application/x-shockwave-flash">
  <param name="autoplay" value="true">
  <param name="loop" value="false">
</object>

param Demo

Steve Jobs' Commencement address at Stanford

index.html
<p>Steve Jobs' Commencement address at Stanford</p>
<object width="320" height="240" data="https://www.youtube.com/embed/bZNEB_o3Hzw?ecver=2">
  <param name="autoplay" value="true">
</object>

Attributes

This element includes global attribute.

  • name: Specifies the name of the parameter (e.g., "autoplay", "quality").
  • type: Used when valuetype is set to "ref"; defines the MIME type of the resource at the URI specified in the value.
  • value: Represents the parameter's assigned value.
  • valuetype: Determines the type of the value attribute. Possible values include:
    • data: The default setting, passing the value as a string to the object's implementation.
    • ref: Specifies that the value is a URI pointing to an external resource.
    • <object>: Refers to the ID of another <object> in the document.

See also

Conclusion

The <param> tag in HTML is used to define parameters for <object>, <applet>, or <embed> elements, providing configuration values for embedded content like media players or plugins. It includes attributes like name and value to pass specific settings such as autoplay or loop behavior.