A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-object-form-attribute/ below:

HTML | <object> form Attribute

HTML | <object> form Attribute

Last Updated : 19 Jul, 2022

The HTML <object> form Attribute is used to specify the one or more forms that the <object> Element belongs to

Syntax: 

<object form="form_id">

Attribute Values: 

Example: 

html
<!DOCTYPE html>
<html>

<body>
    <center>
        <object id="myobject"
                width="400"
                height="100"
                name="myGeeks" 
                form="myGeeks" 
                data=
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png">
        </object>
      
        <h1>GeeksForGeeks</h1>
        <h2>HTML Object &lt;form&gt; Attribute</h2>
      
        <form id="myGeeks">
            <label>Name</label>
            <input type="text">
            <input type="submit">
        </form>
    </center>
</body>

</html>

Output:

  

Supported Browsers:  Browsers supported by HTML <object> form Attribute.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4