| 
	
 | 
 Posted by J.O. Aho on 01/31/07 08:29 
Beauregard T. Shagnasty wrote: 
> fuli open wrote: 
>  
>> Beauregard T. Shagnasty wrote: 
>>> You should add a DOCTYPE to all your pages. Use this at the very 
>>> beginning of each page; 
>>> 
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
>>>    "http://www.w3.org/TR/html4/strict.dtd"> 
>> Which doctype is more adequate for my page, the above one or the  
>> following one? 
>> 
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// 
>> www.w3.org/TR/html4/loose.dtd"> 
>  
> Strict is for new pages. One would only use Transitional if one was .. 
> well .. transitioning legacy pages and didn't have the time to remove 
> ancient 'presentational' HTML code:  <font ..>, <center>, stuff like 
> that. 
 
Using strict or transitional, don't allow xhtml tags. 
 
 
> Without a valid doctype of any kind, you push browsers into quirks mode. 
 
As the pages that OP has made uses xhtml too, it's getting even worse. 
 
--  
 
   //Aho
 
  
Navigation:
[Reply to this message] 
 |