W3C home > Mailing lists > Public > www-validator@w3.org > November 2004

Checking for Units in regard to Dimension Specifications (also PHP)

From: Mike Youell <mike@cocoweb.co.uk>
Date: Fri, 26 Nov 2004 22:58:34 -0000
To: <www-validator@w3.org>
Message-ID: <000001c4d40b$76391e00$c6261252@brainiac>
Hi,
 
It would be really useful if the validator encouraged the use of units
when specifying dimensions.
 
e.g.
style="padding-left: 12" should be:
style="padding-left: 12px" or whatever units.
 
The are three good reasons for this:
 
1) Netscape seems to ignore the above padding if you don't specify the
units, whereas IE doesn't.
2) Specifying units will increase visual consistency between browsers.
3) It makes it clearer to human readers of the html source.
 
Also it would be useful to be able to validate php, or at the very least
advise people what to do to validate it.
 
What I currently do is to do a "view source" on the client side, save
the file as pure html and validate that.  As that is really what it's
all about anyway... i.e. validating the final HTML not really the PHP
per se.
 
Apologies if this question has been asked... I couldn't find it in any
of the FAQ's...
 
Many thanks, the validator is an excellent tool... thanks to everyone
involved in it.
Mike Youell.
 





Ivy.gif
(image/gif attachment: Ivy.gif)

Received on Saturday, 27 November 2004 10:16:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:15 GMT