If you need to ensure that the
contents of a cell always remains as they are, and don’t wrap, use the
nowrap attribute. You might use
nowrap in a table cell that contains a telephone
number which may contain one or more spaces, but should be output on one
line to ensure clarity.
Note that this attribute, which is now
deprecated, has a much better alternative in the form of the CSS property
white-space (which can be set to
The example HTML shows the
nowrap attribute used in an XHTML-compliant way,
but it could equally be expressed in HTML 4.01 as follows:
<td nowrap>+44 01793 001100</td>
contents are set not to wrap:
<td nowrap="nowrap">+44 01793 001100</td>
"nowrap" is the
only value this attribute can take.
support is provided, but given that this is a deprecated attribute, you
should opt for the CSS alternative instead (
There are no comments yet.