HTML <param>

BrandonDusch's avatar
Published Mar 24, 2022Updated Jul 1, 2022
Contribute to Docs

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

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      7 hours

Syntax

<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.

Example

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" />
</object>

All contributors

Contribute to Docs

Learn HTML on Codecademy

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      7 hours