Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML td height attribute

HTML height attribute

HTML td Tag Reference HTML Tag

Example

Two table cells with predefined heights:

Month Savings
January $100
February $80

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 cell.

Normally, the space a cell occupies is the space it needs to display its content. The height attribute is used to set a predefined height for a cell.


Compatibility notes

In HTML 4.01, the height attribute is deprecated. Please use CSS instead.

CSS syntax:

CSS example: Setting the height of table cells

In our CSS tutorial, you can find more details about height property details.


Syntax

HTML tag