Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your mileage will vary depending on browser and version, but here's the short of it:</p> <p>To the best of my knowledge, browsers don't actually go to any effort to fetch and make use of the dtd in the URL, or validate the code in any way. Resultingly, your webpage will work "fine" without a doctype declaration, with a broken doctype declaration, and in a number of other broken forms. </p> <p>When not running your code through a validator, the major reason for providing a doctype definition at the top of your code is to pull browsers out of quirks mode and into standards compliance mode, ala the historical disaster with IE &lt; 7 ... </p> <p><em>It's a little bit outside of the scope to lecture on quirks and standards mode here, so the curious should head over to wikipedia: <a href="http://en.wikipedia.org/wiki/Quirks_mode" rel="nofollow">http://en.wikipedia.org/wiki/Quirks_mode</a></em></p> <p>Web browsers use their own relatively arbitrary standards to switch modes based on the doctype. What you are likely encountering is IE in <strong>quirks mode</strong> when your DTD lacks a URL, and <strong>standards mode</strong> when you add the URL.</p> <p>You should probably aim to include the full declaration, including the URL, and run your code through the W3C validator [1] for good measure.</p> <p>Fix the rendering problems with valid code and a full doctype [2]. Quirks mode was only ever intended for backwards compatibility so that unmaintained websites will continue to render as expected for as long as possible.<br> If your web page only renders as expected in quirks mode, <strong>your web page is broken</strong>.</p> <p><strong>Sidenote: you should seriously question why you are using 4.01 transitional in 2013.</strong></p> <p>[1] <a href="http://validator.w3.org/" rel="nofollow">http://validator.w3.org/</a> <br> [2] <a href="http://www.w3.org/QA/2002/04/valid-dtd-list.html" rel="nofollow">http://www.w3.org/QA/2002/04/valid-dtd-list.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload