English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Directory

HTML object height attribute

The object height attribute specifies the height of the object in pixels.

 HTML <object> tag

Online examples

height 500 Pixel and width of 300 pixel flash animation:

!DOCTYPE html
<html>
<head>
<title>HTML:<object> height Attribute - Basic Tutorial Website(oldtoolbag.com)<//title>
</head>
<body>
<object data="helloworld.swf" width="500" height="300"></object>
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the height attribute.

Definition and Usage

The height attribute specifies the height of the object in pixels.

HTML 4.01 With HTML5Differences

None.

Syntax

<object height="pixels">

Attribute Value

ValueDescription
pixelsObject height in pixels (for example height="100").
 HTML <object> tag