height (HTML attribute)
| Depr. | Version |
|---|---|
| Yes | HTML 2 |
Syntax
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.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.