You are here: Re: Getting DOCTYPE right « HTML « IT news, forums, messages
Re: Getting DOCTYPE right

Posted by Toby A Inkster on 02/21/07 11:25

Nick Wedd wrote:

> It still has the same problem.

The "problem" is that including *any* DOCTYPE (there are a handful of
exceptions) will flip your browser out of "quirks mode". "Quirks Mode" is a
bad place to be, as it means that your web page will behave unpredictably
across different browsers.

You have clearly written your page in "quirks mode", relying on some
quirky behaviour in your browser -- Internet Explorer 5's broken box
model is one of the key features of quirks mode.

Now that you have added a DOCTYPE, your browser is no longer in quirks
mode, so the quirky behaviour you were relying on has gone.

The solution is to use a strict DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

and adjust your CSS to get your site to display correctly.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация