Easy Tutorial
❮ Prop Script Src Event Onmouseenter ❯

width Attribute for Embed

Embed Object

Example

Modify the width of the embedded file to 500 pixels:


Definition and Usage

The width attribute is used to set or return the width of an <embed> element.

The width attribute describes the width of the embedded file, measured in pixels.

Tip: Use the height attribute to set or return the height of the <embed> element.


Browser Support

All major browsers support the width attribute.


Syntax

Return the width attribute:

Set the width attribute:

Attribute Values

Value Description
pixels Specifies the width of the embedded file, in pixels. (e.g., width="100")

Technical Details

| Return Value: | A Number, representing the width of the embedded content, in pixels | | --- | --- |


More Examples

Example

Return the width of the embedded file:

Example

Modify the height and width of the embedded file to 500 pixels:


Related Pages

HTML Reference: HTML <embed> width Attribute


❮ Prop Script Src Event Onmouseenter ❯