With the validation tools available with all the Firefox Webdeveloper toolbar (fantastic source, btw) I’ve found that my pages currently don’t have a DOCTYPE specified for the top of the pages.

Given that I’m producing strong PHP/MySql pages just what doctype setting ought to be a be using What variations are you able to have, and do you have any cross-browser issues that i should be aware of

Thanks ahead.

Well this will depend. If your screenplays are spitting out HTML 4. 0 one example is, there are some DTD’s specified with regard to use with HTML PAGE 4. 0, one of which must be included in the document. Each DTD varies while in the elements it supports.

CODE 4. 0 Tight DTD
All elements and attributes which may have not been deprecated.

<! DOCTYPE CODE PUBLIC " -//W3C//DTD CODE 4. 0//EN" " http: //www. w3. org/TR/REC-html40/strict. dtd" >

CODE 4. 0 Transitional DTD
Includes everything while in the strict DTD together with deprecated elements in addition to attributes. (Most belonging to the deprecated elements as well as attributes cover visible presentation. )

<! DOCTYPE CODE PUBLIC " -//W3C//DTD CODE 4. 0 Transitional//EN" " http: //www. w3. org/TR/REC-html40/loose. dtd" >

CODE 4. 0 Frameset DTD
Includes everything while in the Transitional DTD together with frames

<! DOCTYPE CODE PUBLIC " -//W3C//DTD CODE 4. 0 Frameset//EN" " http: //www. w3. org/TR/REC-html40/frameset. dtd" >

CODE 4. 0 was just a preview, if you’re making use of say XHTML ONE PARTICULAR. 0 your doctype is slightly different. Your best resource is w3. org, including a quick search of their website produced a good page: http: //www. w3. org/QA/2002/04/valid-dtd-list. html

After investigating one of your own websites (http: //www. trulybizarre. co. uk/) I could say your value is most closely associated with HTML 4. 01 Transitional. Consequently whack this doctype around:

<! DOCTYPE CODE PUBLIC " -//W3C//DTD CODE 4. 01 Transitional//EN"
" http: //www. w3. org/TR/html4/loose. dtd" >

When you’ve put of which in, run it throughout the w3 validator based here: http: //validator. w3. org/

http: //www. alistapart. com/articles/doctype/

Fantastic, thanks for the exact help.

We’ve a few issues to correct with IE at this point, but if them helps tighten my personal code up a lot the better.

Bless you again.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *