HTML <embed> width Attribute

Definition and Usage

width The attribute specifies the width of the embedded content in pixels.

Tip:Use height Attribute Specify the height of the embedded content.

Example

An image with a height and width of 200 pixels:

<embed src="tulip.jpg" width="150" height="150">

Try It Yourself

Syntax

<embed width="pixels">

Attribute Value

Value Description
pixels Width of embedded content in pixels (e.g., width="100").

Browser Support

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