HTML 4.01, Which DOCTYPE?

liunx

Guest
which DOCTYPE would be the best one to use for a site? :confused: <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"><br />
<br />
i have looked at these options on this site (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html401/loose.dtd">http://www.w3.org/TR/html401/loose.dtd</a><!-- m -->) but i still dont understand it fully?<br />
<br />
could anyone please give me some advice on which one i should use.<br />
<br />
i just wanna make a little fun site probably containing flash / javascript / CSS. nothing really fancy like.<br />
<br />
thanx in advance, Joe<!--content-->transitional<br />
this is the most optimistic version of the standard - it allows for tags and attributes that are deprecated in the strict version.<br />
<br />
<br />
frameset<br />
only necessary if you are including either framesets or iframes for your site.<br />
<br />
<br />
strict<br />
most people will tell you that this is the only way to go. It is the one that all browsers should currently work best with.<!--content-->you need this one<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
without<br />
"http://www.w3.org/TR/html4/loose.dtd"<br />
<br />
that line is bad, don't use it<br />
Originally posted by Horus_Kol <br />
<br />
frameset<br />
only necessary if you are including either framesets or iframes for your site.<br />
<br />
you don't use it for iframes.<br />
Originally posted by Horus_Kol <br />
strict<br />
most people will tell you that this is the only way to go. It is the one that all browsers should currently work best with. <br />
no it isn't because it won't let you run deprecated tags and older browsers will not run it on the newer tags. so all newer browsers will run it fine.<!--content-->sorry, I thought you needed the frameset doctype for iframes.<br />
<br />
I just checked at <!-- w --><a class="postlink" href="http://www.htmlhelp.com">www.htmlhelp.com</a><!-- w --> (<!-- m --><a class="postlink" href="http://www.htmlhelp.com">http://www.htmlhelp.com</a><!-- m -->) - and iframe is not strict compliant to html 4.0<br />
<br />
I also checked at <!-- w --><a class="postlink" href="http://www.w3.org">www.w3.org</a><!-- w --> (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/present/frames.html#edef-IFRAME">http://www.w3.org/TR/REC-html40/present ... def-IFRAME</a><!-- m -->) but couldn't see any information there.<br />
<br />
<br />
<br />
as for the browsers - sorry that was just bad english then.<!--content-->figured it was, just wanted to clear it up so nobody misunderstood. :)<!--content-->thanks for the feedback guys.<br />
<br />
you need this one<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
that one it is then<br />
<br />
:cheers: cheers! Joe<!--content-->See also: <!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=26972">http://www.htmlforums.com/showthread.ph ... adid=26972</a><!-- m --><!--content-->
 
Back
Top