Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 3 of 3
  1. #1
    Platinum Lifetime Member
    emark's Avatar
    Join Date
    Aug 2004
    Location
    Here
    Posts
    317
    DNF$
    475
    Bank
    0
    Total DNF$
    475
    Donate  

    doctype question

    Hi guys and guyettes,

    I had this posted in another location, but couldn't get a response. I apologize if this is the wrong place to post it, but I really need an answer to this question.

    Can anyone help me with this?

    I'm currently installing this doctype on my websites:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    Is that the correct one to use or should I be using:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    Exactly what does having the correct doctype do for a website? Should all types of websites use the same doctype?

    Thanks a lot for any feedback.
    Rick

  2. #2
    Platinum Lifetime Member

    Join Date
    Apr 2008
    Location
    Ukraine
    Posts
    106
    DNF$
    1,199
    Bank
    0
    Total DNF$
    1,199
    Donate  
    Rick,

    DOCTYPE defines the language schema of the following XML document. If omitted, most browsers use the so-called 'loose' schema that allows many usual HTML mistakes inexperienced coders do.

    The two DOCTYPE definitions you mention are for HTML 4.01, a pretty old standard from mid-90s. Nowadays good coders use XHTML Transitional or Strict which are more clean and semantically correct.

    Exactly what does having the correct doctype do for a website?
    It ensures correct display and parsing of the [X]HTML document.

    Should all types of websites use the same doctype?
    No. DOCTYPE should tell browsers and bots what is the language of the following document.

  3. #3
    Platinum Lifetime Member
    emark's Avatar
    Join Date
    Aug 2004
    Location
    Here
    Posts
    317
    DNF$
    475
    Bank
    0
    Total DNF$
    475
    Donate  
    Thank you accomatic,

    I really appreciate the help. Now I can correct some of the mistakes I'm making. My websites thank you too.
    Rick

Bookmarks

Posting Permissions

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

Domain name forum recommended by Domaining.com