Latest web development tutorials

HTML td nowrap attribute

HTML td tag Reference Manual HTML <td> tag

Examples

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"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the nowrap attribute.


Definition and Usage

HTML5 does not support the <td> nowrap attribute. Use CSS instead.

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

nowrap attribute is a Boolean attribute.

nowrap attribute specifies the contents of a table cell does not wrap.


Compatibility Notes

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

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

CSS Example: table cell does not wrap

In our CSS tutorial you can find more information about the white-space attribute details.


Differences between HTML and XHTML

In XHTML, prohibit attribute minimization, nowrap attribute must be defined as <td nowrap = "nowrap">.


grammar

<td nowrap>


HTML td tag Reference Manual HTML <td> tag