height (HTML attribute)

Spec
Depr. Version
Yes HTML 2

Syntax

height="height in pixels"

Description

The main use for specifying the height (and width) is to improve the experience for a user while a page is loading. If the dimensions are specified in the markup, as the page is loaded the space required for the applet is ‘reserved’ by the browser; without this information, the browser does not know how big the applet is and cannot allocate the necessary space. On a slow-loading page, the effect can be quite disturbing as content is constantly re-flowed as each new applet appears on the page.

Example

The height attribute set to "100":

<applet code="ticker.class" height="100">
</applet>

Value

A number representing the height of the applet in pixels.

Compatibility

User-contributed notes

There are no comments yet.

Related Products