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-name-attribute/ below:

HTML | <object> name Attribute

HTML | <object> name Attribute

Last Updated : 19 Jul, 2022

The HTML <object> name Attribute is used to specify the name of the embedded file. This attribute is also used as a reference for an object element in the Javascript. 

Syntax:

<object name="name">

Attribute Values: 

Example: 

html
<!DOCTYPE html>
<html>

<body>
    <center>
        <object id="myobject" 
                width="400" 
                height="100" 
                name="myGeeks"
                data=
"https://media.geeksforgeeks.org/wp-content/uploads/geek-8.png">
        </object>
        <h2> 
        HTML Object name Attribute 
    </h2>
    </center>
</body>

</html>

Output:

  

Supported Browsers: The browsers supported by HTML <object> name Attribute are listed below:



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