<!doctype...

liunx

Guest
How do I know what to put after <!DOCTYPE...<!--content-->It depends upon what mark-up you are using: <!-- m --><a class="postlink" href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">http://www.w3.org/QA/2002/04/valid-dtd-list.html</a><!-- m --> I assume you are after HTML 4.01.<!--content-->If you are using HTML 3.2 (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html32">http://www.w3.org/TR/REC-html32</a><!-- m -->) then use <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><br />
<br />
If you are using HTML 4.01 (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/">http://www.w3.org/TR/html4/</a><!-- m -->) then use <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<br />
unless you are using a HTML 3.2/HTML 4.01 Hybrid. Then use <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<br />
But at the top of a frame set use<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"><br />
<br />
And note that those are for HTML and not XHTML.<!--content-->(points at sig)<br />
<br />
:p<!--content-->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."<br />
Do I need something else other than just a doctype.<br />
I'm sorry if this is a simple question but I need to learn some how.<!--content-->You have an option of forcing a doctype in the validator (<!-- m --><a class="postlink" href="http://validator.w3.org/detailed.html">http://validator.w3.org/detailed.html</a><!-- m -->) It will insert a doctype you select from the drop-down list.<!--content-->Originally posted by lavalamp <br />
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."<br />
Do I need something else other than just a doctype.<br />
I'm sorry if this is a simple question but I need to learn some how. <br />
<br />
You also need a meta tag showing what charset you want. You can add this one in.<br />
<br />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><br />
<br />
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.<!--content-->
 
Back
Top