Colin McGarry wrote:
What shopuld the document type be. And what differences come about from
changing it.?
Brief guide to important HTML versions.
3.2 - attempt to describe the state of browser support some years ago.
4.01 - attempt to get HTML in to reasonable shape. There are three varients:
4.01 Frameset - for <frameset> documents (which should be avoided under
most circumstances)
4.01 Transitional - The version with most of the old presentational markup
4.01 Strict - The version without most of the old the OPM
XHTML 1.0 - exactly the same as HTML 4.01 but expressed using XML instead of
SGML.
HTML 4.01 Strict probably the best choice for new documents at present.
List of DTDs:
http://www.w3.org/QA/2002/04/valid-dtd-list.html
The Doctype shouldn't have any influence over the rendering of pages, but
some browsers use it to guess how smart the author is. "This page has THIS
Doctype therefore the author knows about standards" Vs "This page has THAT
or NO Doctype there therefore I will emulate old buggy browsers".
http://gutfeldt.ch/matthias/articles/doctypeswitch.html
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>