A header cell with a nowrap attribute:
![]()
The nowrap attribute is supported in all major browsers.
The <th> nowrap attribute is not supported in HTML5. Use CSS instead.
The nowrap attribute of <th> is deprecated in HTML 4.01.
The nowrap attribute is a boolean attribute.
When present, it specifies that the content inside a header cell should not wrap.
The nowrap attribute of <th> is deprecated in HTML 4.01. Use CSS instead.
CSS syntax: <th style="white-space: nowrap">
CSS Example: No word-wrapping in header 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 <th nowrap="nowrap">.
HTML <th> tag
Your message has been sent to W3Schools.