HTML td nowrap attribute

Example

A table cell with a nowrap attribute:
<table border="1">
  <tr>
    <th>Poem</th>
    <th>Poem</th>
  </tr>
  <tr>
    <td nowrap="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>

Definition and Usage

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

Browser Support

The nowrap attribute is deprecated, but still supported in all major browsers.

Compatibility Notes

The nowrap attribute of the td element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax: <td style="white-space: nowrap">

Syntax

<td nowrap="value">

Attribute Values

Value Description
nowrap Specifies that the content inside a cell should not wrap
Share this article :
 
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved