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

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.
 

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