David Harrison
06-05-2003, 01:07 PM
How do I know what to put after <!DOCTYPE...
|
Click to See Complete Forum and Search --> : <!doctype... David Harrison 06-05-2003, 01:07 PM How do I know what to put after <!DOCTYPE... Robert Wellock 06-05-2003, 01:15 PM It depends upon what mark-up you are using: http://www.w3.org/QA/2002/04/valid-dtd-list.html I assume you are after HTML 4.01. Charles 06-05-2003, 01:30 PM If you are using HTML 3.2 (http://www.w3.org/TR/REC-html32) then use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> If you are using HTML 4.01 (http://www.w3.org/TR/html4/) then use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> unless you are using a HTML 3.2/HTML 4.01 Hybrid. Then use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> But at the top of a frame set use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> And note that those are for HTML and not XHTML. spufi 06-05-2003, 04:04 PM (points at sig) :p David Harrison 06-05-2003, 04:35 PM As it happens I put a doctype on my page (I've not uploaded it yet) and I compared it to a doctype that I found via one of spufi's links (in another thread) and it turns out that the page I was on was the page that Robert Wellock put a link to. However I still can't validate the page, If you want the page source it's in a thread I created in the js forum called "All kindsa problems." Do I need something else other than just a doctype. I'm sorry if this is a simple question but I need to learn some how. nkaisare 06-05-2003, 04:40 PM You have an option of forcing a doctype in the validator (http://validator.w3.org/detailed.html) It will insert a doctype you select from the drop-down list. spufi 06-05-2003, 06:16 PM Originally posted by lavalamp As it happens I put a doctype on my page (I've not uploaded it yet) and I compared it to a doctype that I found via one of spufi's links (in another thread) and it turns out that the page I was on was the page that Robert Wellock put a link to. However I still can't validate the page, If you want the page source it's in a thread I created in the js forum called "All kindsa problems." Do I need something else other than just a doctype. I'm sorry if this is a simple question but I need to learn some how. You also need a meta tag showing what charset you want. You can add this one in. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> I'm looking at your code you uploaded in the JavaScript section. I might not be able to answer your JavaScript question, but I might be able to aid in the other stuff. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |