Dofactory.com
Dofactory.com

HTML <embed> height Attribute

The height attribute on an <embed> tag sets the height of the embed element.

The height is specified in pixels - without the ‘px‘ unit.

Example

#

An <embed> element with a height attribute.

<embed src="/img/html/vangogh-bedroom.jpg" 
       height="280">

Using height

The height attribute specifies the height of the embedded content.

The height is specified in pixels -- without the 'px' unit.


Syntax

<embed src="URL" height="pixels">

Values

#

Value Description
pixels Height of the embedded content in pixels.

Note: The height attribute requires that src has a value.


Browser support

Here is when height support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <embed>

Last updated on Sep 30, 2023




Guides