Tutorials References Exercises Bootcamps Videos Menu
Sign Up Create Website Get Certified Upgrade

HTML <object> width Attribute

❮ HTML <object> tag


An embedded image with a height of 300 pixels and a width of 200 pixels:

<object data="pic_trulli.jpg" width="200" height="300"></object>
Try it Yourself »

Definition and Usage

The width attribute specifies the width of the object, in pixels.

Browser Support

width Yes Yes Yes Yes Yes


<object width="pixels">

Attribute Values

Value Description
pixels The width of the object, in pixels (i.e. width="100")

❮ HTML <object> tag