Skip to content
Related Articles

Related Articles

Improve Article

How to define a parameter for an object using HTML ?

  • Last Updated : 05 Jun, 2020

In this article, we define a parameter for an object by using the <param> tag in the document. In HTML, <param> tag is used to define the parameter for plug-ins which is associated with element. It does not contain the end tag.

Syntax:

<param name="" value="">

Example: The following example demonstrates the “param” element for an object.

html




<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to define a parameter
        for an object using HTML?
    </title>
  
    <style>
        body {
            text-align: center;
        }
  
        h1 {
            color: green;
        }
    </style>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
  
    <h2>
        HTML5: How to define a
        parameter for an object?
    </h2>
  
    <object data="video.mp4">
        <param name="autoplay" 
            value="true">
    </object>
</body>
  
</html>                       

Output:

Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :