HTML <object> width attribute

Definition and Usage

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

Example

Embedded image, height of 300 pixels, width of 200 pixels:

<object data="tulip-yellow.jpg" width="600" height="400"></object>

Try It Yourself

Syntax

<object width="pixels">

Attribute Value

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

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support