| 
	
 | 
 Posted by Joel Shepherd on 06/23/06 15:07 
"Chris Tomlinson" <anon@anon.com> wrote: 
 
> "Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.html> 
>  
> > Also, the page has no 
> > doctype.  Does it validate?  I suspect not. 
>  
> Well based on your comment we have now added <!DOCTYPE HTML PUBLIC  
> "-//W3C//DTD HTML 4.0 Transitional//EN" > but can you please briefly mention  
> the benefit of doing so as all the pages seem to work fine without this, in  
> all browsers. 
 
The benefit (assuming the doctype is correct: it looks plausible) is  
that you can now pass the page source through a validator, which in turn  
will tell you whether your HTML is valid (i.e., well-formed). Without  
getting into the panty-bunching aspects of validation, it can be very  
helpful for pointing out gross errors such as missing and improperly  
nested tags. 
 
Sorting that out, in turn, can resolve some page rendering problems, and  
help ensure that the page continues to render reasonable well on  
browsers not yet in the wild: i.e., future-proof the page. 
 
--  
Joel.
 
  
Navigation:
[Reply to this message] 
 |