Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <object> width Attribute

  • Last Updated : 28 Jun, 2019

The HTML <object> width attribute is used to specify the width of the object tag in terms of pixels.


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

<object width="pixels">

Attribute Values:

  • pixels: It holds the width of the object in terms of pixels.

Below example illustrates the <object> width attribute in HTML:


<!DOCTYPE html> 
        HTML object width Attribute
<body style="text-align:center;"
    <h2>HTML object width Attribute</h2>
    <object id="myobject" width="400"
                height="200" data


Supported Browsers: The browser supported by HTML <object> width attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!