Quote:
Originally Posted by Alltribes
Nope, the correct usage is nowrap="nowrap". Either will work but it won't validate if you just use nowrap.
|
The correct usage is simply
nowrap. It does not validate probably due to your doctype declaration. That attribute is now depreciated.
Quote:
Originally Posted by W3C
nowrap [CI]
Deprecated. When present, this boolean attribute tells visual user agents to disable automatic text wrapping for this cell. Style sheets should be used instead of this attribute to achieve wrapping effects. Note. if used carelessly, this attribute may result in excessively wide cells.
|
The reason that you are able to get it to validate using nowrap="nowrap" is because certain validators will allow non-standard atributes as long as they have a value and have quotes around the value. So for instance I could use:
smell="bad"
or
hair="nappy"
and they would still "validate" because the syntax is legal. It does not mean that they are proper HTML tag attributes.