HTML 4.0 Logo Reader Icon OEB 1.0 Logo PPC Logo height

This attribute specifies the height of the table cell, image, or table header. The image or table is scaled to that height in pixels if a number value is given, or scaled to that percentage of active page size (or containing table cell size) if a number is followed by a percent sign (%). Generally used in combination with width. If image height is used without specifying the width attribute, the width is changed so that the image's aspect ratio is maintained.

Syntax

height="pixels|percentage%"

Associated Tags

img, td, th, table

Sample

Height Attribute sample

Sample Code

<img src="testimg1.jpg" height="100" align="left" /><br clear="all"/>
<br />
<img src="testimg1.jpg" height="25%" align="right" />

© 2000 Microsoft Corporation. All rights reserved. Terms of use.