The <param> element is used within an <object> element to pass parameters to the resource it is displaying.


<param name="parameter name" value="parameter value" />

The <param> element uses two attributes:

  • A name for the parameter.
  • A value to specify the named parameter’s value.


This example will play the “sound.wav” file as soon as the browser finishes loading the page:

<object type="audio/x-wav" data="sound.wav">
<param name="autoplay" value="true" />


Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn HTML on Codecademy