Easy Tutorial
❮ Att Ins Cite Att Progress Value ❯

HTML <td> height Attribute

HTML <td> Tag

Example

Two table cells with predefined heights:


Browser Support

All major browsers support the height attribute.


Definition and Usage

In HTML 4.01, the height attribute of <td> is deprecated.

The height attribute specifies the height of a cell.

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


Compatibility Notes

In HTML 4.01, the height attribute of <td> is deprecated. Use CSS instead.

CSS syntax: <td style="height:100px">

CSS Example: Setting the Height of Table Cells

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


Syntax

Attribute Values

Value Description
pixels Sets the height in pixels (e.g., height="50").
% Sets the height as a percentage of the containing element (e.g., height="50%").

❮ Att Ins Cite Att Progress Value ❯