Open In App

HTML <param> value Attribute

Last Updated : 12 Mar, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <param> value Attribute defines the value of a <param> element, used with the name attribute to specify parameters for plugins within <object> tags.

Syntax: 

<param value="value">

 Note: This attribute is depreciated from HTML 5.

Attribute:

Name

Description

value

It is used to specify the value of the param Element.

HTML <param> value Attribute Examples

Example 1: In this example we are using the <param> element’s value attribute within <object> tags to specify parameters for playing video and audio files.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>
        HTML param value Attribute
    </title>
</head>

<body>        
    <object data=
"https://media.geeksforgeeks.org/wp-content/uploads/20190626010302/ice_video_20190626-005104_edit_0.mp4">
        <param name="video" value="play">
    </object>
    
    <object data=
"https://media.geeksforgeeks.org/wp-content/uploads/20190625154423/1-1.wav">
        <param name="audio" value="play">
    </object>

</body>

</html>                 

Output:

html-param-value-attribute

HTML param value attribute

Supported Browsers

The browser supported by HTML <param> value Attribute are listed below:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads