HTML height attribute
Example
Two header cells with predefined heights:
| Month | Savings |
|---|---|
| January | $100 |
| February | $80 |
Try it »
Browser support





All major browsers support the height property.
Definition and Usage
HTML5 does not support the height attribute. Please use CSS instead.
In HTML 4.01, the height attribute is deprecated.
The height attribute specifies the height of a header cell.
Normally, if the height attribute is not set, a header cell takes up as much space as its content needs. The height attribute is used to set a predefined height for a header cell.
Compatibility notes
In HTML 4.01, the height attribute is deprecated. Please use CSS instead.
CSS syntax:
CSS Example: Set the height of a header cell
In our CSS tutorial, you can find more details about height property details.
HTML Tag