English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML td nowrap attribute

The nowrap attribute is a boolean attribute, the nowrap attribute specifies that the content in the table cell does not wrap.

 HTML <td> tag

Online Example

Table cells with nowrap attribute:

<table border="1">
  <tr>
    <th>Explanation</th>
    <th>Explanation</th>
  </tr>
  <tr>
    <td nowrap>Never increase the number of entities required to explain any matter beyond the necessary range </td>
    <td>Never increase the number of entities required to explain any matter beyond the necessary range</td>
  </tr>
</table>
Test to see if it works ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the nowrap attribute.

Definition and Usage

HTML5 The nowrap attribute of <td> is not supported. Please use CSS instead.

In HTML 4.01 In the <td> nowrap attribute has been deprecated.

The nowrap attribute is a boolean attribute.

The nowrap attribute specifies that the content of the table cell does not wrap.

Compatibility Comment

In HTML 4.01 In the <td> nowrap attribute has been deprecated. Please use CSS instead.

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

CSS Example: Table cell without line break

You can find more aboutwhite-space attribute . Details.

Differences between HTML and XHTML

In XHTML, attribute shorthand is prohibited, the nowrap attribute must be defined as <td nowrap="nowrap">.

Syntax

<td nowrap>
 HTML <td> tag