A table cell with a nowrap attribute:
The nowrap attribute is a boolean attribute.
When present, it specifies that the content inside a cell should not wrap.
Attribute | |||||
---|---|---|---|---|---|
nowrap | Yes | Yes | Yes | Yes | Yes |
The nowrap attribute of <td> is not supported in HTML5. 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.
In XHTML, attribute minimization is forbidden, and the nowrap attribute must be defined as <td nowrap="nowrap">.