Easy Tutorial
❮ Att Area Type Att Frame Noresize ❯

HTML <td> nowrap Attribute

HTML <td> Tag

Example

A table cell with the nowrap attribute:


Browser Support

All major browsers support the nowrap attribute.


Definition and Usage

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

The nowrap attribute is a boolean attribute.

The nowrap attribute specifies that the content inside a table cell should not wrap.


Compatibility Notes

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

CSS syntax: <td style="white-space: nowrap">

CSS Example: No Wrap in Table Cell

In our CSS tutorial, you can find more details about the white-space property.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the nowrap attribute must be defined as <td nowrap="nowrap">.


Syntax


❮ Att Area Type Att Frame Noresize ❯