Easy Tutorial
❮ Jsref Obj String Prop Area Coords ❯

height Attribute for Embed

Embed Object

Example

Change the height of the embedded file to 500 pixels:


Definition and Usage

The height attribute is used to set or return the value of the height attribute of the <embed> element.

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

Tip: Use the width attribute to set the value of the width attribute of the <embed> element.


Browser Support

All major browsers support the height attribute.


Syntax

Return the height attribute:

Set the height attribute:

Attribute Values

Value Description
pixels Describes the height of the embedded content, measured in pixels. (e.g., height="100")

Technical Details

| Return Value: | A number, representing the height of the embedded file, measured in pixels. | | --- | --- |


More Examples

Example

Return the height of the embedded file:

Example

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


Related Pages

HTML Reference: HTML <embed> height Attribute


❮ Jsref Obj String Prop Area Coords ❯