Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post

    Question About Doctypes

    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...?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    Code:
    <!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?
    Last edited by Daniel_A_Varney; 07-02-2011 at 01:29 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2011
    Posts
    103
    Thanks
    0
    Thanked 13 Times in 13 Posts
    refer here


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •