HTML <object> width Attribute

❮ HTML <object> tag

Example

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

Attribute
width Yes Yes Yes Yes Yes

Syntax

<object width="pixels">

Attribute Values

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

❮ HTML <object> tag
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.