HTML | param Tag

The <param> tag in HTML is used to define a parameter for plug-ins which is associated with <object> element. It does not contains the end tag.

Syntax:

<param name = "" value="">

Attributes:

  • name: It is used to specify the name of parameter.
  • value: It is used to specify the value of parameter.
  • type: It is used to specify the media type.
  • valuetype: It is used to specify the type of the value.

Note: The type and valuetype attributes are not supported in HTML5.

Example 1:



filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>param tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><param> Tag</h2>
        <object data="sample.mp4">
            <param name="video" value="play">
        </object>
    </body>
</html>                                

chevron_right


Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>param tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><param> Tag</h2>
        <object data="aud.mp3">
            <param name="audio" value="autoplay">
        </object>
    </body>
</html>                    

chevron_right


Output:

Supported Browsers: The browser supported by <param> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • opera
  • Safari


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.