height attribute (embed, iframe, img, table, ...)
Specifies the height of an element.
This attribute is deprecated. Use the height style property instead.
JavaScript page for this attribute: height. You can find other example(s) there. |
Possible values:
Sets the height of the object.
One of the following values:
Integer that specifies the height of the object, in pixels. | |||||||
Integer in the range 0-100 followed by a %. |
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the height attribute:
|
||||
<img id="myImage" src="picture.gif" height="100px" width="100px" /> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
Recommendation:
|
||||
<img id="myImage" src="picture.gif" style="height:100px; width:100px;" /> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
height (MSDN)
height (Safari Reference Library)
height (IFRAME) (W3C)
height (TH) (W3C)
height (IMG) (W3C)
height (APLLET) (W3C)
height (Safari Reference Library)
height (IFRAME) (W3C)
height (TH) (W3C)
height (IMG) (W3C)
height (APLLET) (W3C)
User Contributed Comments