|
Posted by Beauregard T. Shagnasty on 01/31/07 08:10
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.
Without a valid doctype of any kind, you push browsers into quirks mode.
--
-bts
-Motorcycles defy gravity; cars just suck
Navigation:
[Reply to this message]
|