HTML Tutorial

HTML Tag: <param>

Usage of <param>

The <param> tag defines parameters for an embedded object. It is used within the <object> tag to specify additional information required by the object.

Attributes of <param>

  • name: The name of the parameter.
  • value: The value of the parameter.

Examples with <param>

<object>
  <param name="movie" value="video.mp4">
  <param name="width" value="320">
  <param name="height" value="240">
</object>

In this example, the <object> tag embeds a video file named "video.mp4". The <param> tags specify the width and height of the video player.

Exploring the <param> tag

To see the <param> tag in action, try the following:

  1. Create a new HTML file.
  2. Add the following code to the file:
<!DOCTYPE html>
<html>
<body>

<object>
  <param name="movie" value="video.mp4">
  <param name="width" value="320">
  <param name="height" value="240">
</object>

</body>
</html>
  1. Save the file and open it in a web browser.
  2. You should see the video embedded in the web page.

Additional Notes

  • The <param> tag is a child element of the <object> tag.
  • The <param> tag is not supported in HTML5.
  • Use the <param> tag to provide additional information to the object, such as its source, width, and height.