SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Threaded View

  1. #1
    SitePoint Guru bronze trophy AndrewCooper's Avatar
    Join Date
    Sep 2008
    Manchester, UK
    10 Post(s)
    0 Thread(s)

    HTML 4.01 Doctypes

    Hey everyone, just want a confirmation more than anything or should I say, the professionals view / opinion on this matter.

    I know / understand that whitespace that you create within your HTML document doesn't affect anything related to the results on the Web browser application or anything else, tabs, line breaks and so on -- all mainly for readability of the source.

    However, one thing that I'm troubled with is the inconsistency among Websites using the HTML 4.01 DOCTYPES.

    According to the following Websites:

    And I assume many more, but I can't be bothered searching. That's enough proof. Anyway, according to them Websites the HTML 4.01 DOCTYPES should be served like so:

    Code HTML4Strict:

    Or something along those lines.

    Yet, since I have been creating Web pages I have always used the following format:

    Code HTML4Strict:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">

    And here's a small list of Websites that use this format for serving their DOCTYPES too:

    Yes..Including I've provided six trustworthy sources that say one thing but six other Websites that do one straight line, bear in mind these aren't Websites created by silly-billies.

    Who's in the wrong? Is the actual Web standard to go off what the W3C Technical Recommendations say word by word, line by line? Or should we have the DOCTYPE on one straight line?

    I'm not on any side here. I'm simply asking for clarification on what -the- Web standard is for serving the HTML 4.01 DOCTYPE. I'm more than happy to change the the two line method or stick with the one line method. I've only been serving it as one line because thats what I've seen many other Websites do and its how Adobe Dreamweaver CS3 implements it.

    So, two-line method or one-line method?


    Andrew Cooper
    Last edited by AndrewCooper; Jul 22, 2009 at 07:01.


Posting Permissions

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