Open In App
Related Articles

HTML | <object> name Attribute

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

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: 

  • name: It specify the name of the embedded file.

Example: 

html

<!DOCTYPE html>
<html>
 
<body>
    <center>
        <object id="myobject"
                width="400"
                height="100"
                name="myGeeks"
                data=
        </object>
        <h2>
        HTML Object name Attribute
    </h2>
    </center>
</body>
 
</html>

                    

Output:

  

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

  • Google Chrome
  • Edge 12
  • Internet Explorer
  • Firefox 1
  • Apple Safari
  • Opera

Last Updated : 19 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads