html
  1. html-param-tag

HTML <param> Tag

  • The <param> tag is used to provide parameters for plugins, like <object> and <applet> tags.
  • It can also be used with other elements that require parameters, like <svg> elements.

Syntax

<param name="parameter_name" value="parameter_value">

Example

<object data="audio.mp3">
  <param name="movie" value="audio.mp3">
  <param name="quality" value="high">
</object>
Try Playground

The output will depend on the parameters passed to the plugin element. In the example above, the Flash content from "sample.swf" will be loaded with a high quality setting.

Explanation

The <param> tag provides a way to pass parameters to plugins, like Flash. The name attribute defines the parameter name to be used, and the value attribute sets the parameter value.

Use

The <param> tag is commonly used when embedding media or interactive content on a web page that requires additional settings or configurations. By setting the parameters using the <param> tag, the plugin element can load the content with specific settings, maximizing compatibility and performance.

Important Points

  • The <param> tag is always used in conjunction with a plugin element like <object> or <applet>.
  • Use the name attribute to define the parameter name to be used, and the value attribute to define the parameter value.
  • Multiple <param> tags can be used within a single plugin element to provide different settings or parameters.

Summary

The <param> tag provides a simple way to pass parameters to plugins, like Flash or interactive content. By using the tag, the plugin element can load media or interactive elements with specific settings required for optimum compatibility and performance.

Published on: