Daniel_A_Varney
07-02-2011, 01:18 PM
As I understand it, a transitional DTD allows ALL elements, including depreciated ones. So what is the actual purpose of having a strict doctype? I mean, does it carry any advantage and why would I want to use it? Does it do anything that the transitional one can't or is it just for showing off?
Also, if I were wanting to include a JS application in my site, would I need to use an XHTML doctype or would a normal HTML one do?
Finally, is this it for HTML DTDs...?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Or is there anything else to it I should know about...?
Thanks.
Edit
----------
PS:
What is that URL in there for?
Also, if I were wanting to include a JS application in my site, would I need to use an XHTML doctype or would a normal HTML one do?
Finally, is this it for HTML DTDs...?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Or is there anything else to it I should know about...?
Thanks.
Edit
----------
PS:
What is that URL in there for?