[thelist] crashing code
Aylard JA (James)
jaylard at equilon.com
Wed May 24 11:22:05 2000
George Dillon wrote:
> The WIDTH attribute has an invalid attribute value "323px". (Several
> times)
Annie,
I'm guessing that your use of "px" here is a carryover from CSS.
However, HTML height and width attribute values should be either an integer
or a percentage value, not a string. Anything else should not validate to
the W3C HTML 4.x spec. Surprisingly to me, though, using "px" does not trip
up either IE or Netscape (I tested IE back to version 3.x and Netscape back
to version 1.22). So this is another case where browsers will render
improperly formed HTML. However, eliminating the "px" will not only allow
validators to validate these values, but will save you a few bytes of
bandwidth, as well. :)
Also, I second George's recommendation of HTML-Kit. The name is
alarmingly clunky, but it is an extremely solid freeware HTML editor with
built-in Tidy validator. I'll often use it simply to validate pages on which
I am working, and I highly recommend it.
James Aylard
jaylard@equilon.com