Tutorialspoint.dev

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:



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

Output:

Example 2:

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

Output:

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

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


This article is attributed to GeeksforGeeks.org

You Might Also Like

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter