height (HTML attribute)

Depr. Version
Yes HTML 2


height="height in pixels"


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.


The height attribute set to "100":

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


A number representing the height of the applet in pixels.


User-contributed notes

There are no comments yet.

Related Products