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

HTML th nowrap Attribute

HTML nowrap attribute

HTML th Tag Reference HTML Tag

Example

A header cell with the nowrap attribute:

 

   

   

 

 

   

   

 

 

   

   

 

Month My Savings for a new car
January $100
February $80

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 header cell should not wrap.


Compatibility notes

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

CSS syntax:

CSS Example: No wrapping in header 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 th Tag Reference HTML tag