Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML td nowrap attribute

HTML nowrap attribute

HTML td Tag Reference HTML Tag

Example

A table cell with the nowrap attribute:

Poem Poem

Never increase, beyond what is necessary, the number of entities required to explain anything

Never increase, beyond what is necessary, the number of entities required to explain anything

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the nowrap attribute.


Definition and Usage

HTML5 does not support the nowrap attribute. Please use CSS instead.

In HTML 4.01, the nowrap attribute is deprecated.

The nowrap attribute is a boolean attribute.

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


Compatibility notes

In HTML 4.01, the nowrap attribute is deprecated. Please use CSS instead.

CSS syntax:

CSS example: No wrapping in table cells

In our CSS tutorial, you can find more details about The white-space property details.


Differences between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the nowrap attribute must be defined as .


Syntax


HTML td Tag Reference HTML tag