Search w3schools.com:

SHARE THIS PAGE

HTML <td> nowrap Attribute

HTML td Reference HTML <td> tag

Example

A table cell with a nowrap attribute:

<table border="1">
  <tr>
    <th>Poem</th>
    <th>Poem</th>
  </tr>
  <tr>
    <td nowrap>Never increase, beyond what is necessary, the number of entities required to explain anything</td>
    <td>Never increase, beyond what is necessary, the number of entities required to explain anything</td>
  </tr>
</table>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The nowrap attribute is supported in all major browsers.


Definition and Usage

The <td> nowrap attribute is not supported in HTML5. Use CSS instead.

The nowrap attribute of <td> is deprecated in HTML 4.01.

The nowrap attribute is a boolean attribute.

When present, it specifies that the content inside a cell should not wrap.


Compatibility Notes

The nowrap attribute of <td> is deprecated in HTML 4.01. Use CSS instead.

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

CSS Example: No word-wrapping 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

<td nowrap>


HTML td Reference HTML <td> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]