<p></p>

<p>It is supposed to be backwards compatible with HTML4 and XHTML. <a href="http://ejohn.org/blog/html5-doctype/" rel="nofollow noreferrer">John Resig posted about some of the benefits</a>.</p>

<p>As long as we don't use any of the new and not supported yet features, would there be any downside to start building sites with this doctype?</p>

[{'answer_id': 5637, 'author': 'Bernard', 'author_id': 61, 'author_profile': 'https://Stackoverflow.com/users/61', 'pm_score': 2, 'selected': False, 'text': "<p>I'd say use it and test extensively. Then let us know if it blew your house up or something. :')</p>\n"}, {'answer_id': 5654, 'author': 'Justin Yost', 'author_id': 657, 'author_profile': 'https://Stackoverflow.com/users/657', 'pm_score': 2, 'selected': False, 'text': "<p>My question to you would be why use it if you don't use any of the new/unsupported features. I'm not saying you couldn't play around with it, but why start building sites with a doctype that offers no benefits and could be supplemented by XHTML5.</p>\n"}, {'answer_id': 5687, 'author': 'helloandre', 'author_id': 50, 'author_profile': 'https://Stackoverflow.com/users/50', 'pm_score': 1, 'selected': False, 'text': "<p>if you're going to use the doctype, experiment with the features. As long as they don't go into a production site, and you test them thoroughly, have at it.</p>\n"}, {'answer_id': 5697, 'author': 'graham.reeds', 'author_id': 342, 'author_profile': 'https://Stackoverflow.com/users/342', 'pm_score': -1, 'selected': False, 'text': "<p>Personally I'd say no. There is no clear benefit to HTML5 and in fact would go as far as to say that the whole thing is botched from the start.</p>\n\n<p>Having specialised tags for header, footers and sidebars is a huge mistake - you've got them already in the form of tags (div) and names (classes/id's). Why do we need the specialist ones? XHTML1.1 is good enough, period. In fact, since most browsers don't support HTML4 correctly, there is little point in using a doctype that is going to take years to get proper support.</p>\n"}, {'answer_id': 14192, 'author': 'Shadow2531', 'author_id': 1697, 'author_profile': 'https://Stackoverflow.com/users/1697', 'pm_score': 8, 'selected': True, 'text': '<p>Well consider this:</p>\n\n<p>When serving as text/html, all you need a doctype for is to trigger standards mode. Beyond that, the doctype does nothing as far as browsers are concerned.</p>\n\n<p>When serving as text/html, whether you use XHTML markup or HTML markup, it\'s treated by browsers as HTML.</p>\n\n<p>So, really it comes down to using the shortest doctype that triggers standards mode (&lt;!DOCTYPE html>) and using HTML markup that produces the correct result in browsers.</p>\n\n<p>The rest is about conforming, validation and markup prerference.</p>\n\n<p>With that said, using &lt;!DOCTYPE html&gt; now and trying to make your markup conform to HTML5 is not a bad idea as long as you stick to stable features that work in browsers now. You wouldn\'t use anything in HTML4 or XHTML 1.x that doesn\'t work in browsers, would you?</p>\n\n<p>In other words, you use &lt;!DOCTYPE html&gt; with HTML4-like markup while honoring things that have been clarified in HTML5. HTML5 is about browser compatibility after all.</p>\n\n<p>The downside to using HTML5 now is that the spec can change quite often. This makes it important for you to keep up with the spec as it actively changes. Also <a href="http://validator.nu/" rel="nofollow noreferrer">http://validator.nu/</a> might not always be up-to-date, but <a href="http://validator.w3.org/" rel="nofollow noreferrer">http://validator.w3.org/</a> isn\'t always up-to-date either, so don\'t let that stop you.</p>\n\n<p>Of course, if you want to use XHTML 1.0 markup and conform to XHTML 1.0, then you shouldn\'t use &lt;!DOCTYPE html&gt;.</p>\n\n<p>Personally, I always use &lt;!DOCTYPE html&gt; for HTML.</p>\n'}, {'answer_id': 152329, 'author': 'hsivonen', 'author_id': 18721, 'author_profile': 'https://Stackoverflow.com/users/18721', 'pm_score': 2, 'selected': False, 'text': '<p>Based on the latest IE8 beta, it seems that MS will use the HTML5 doctype as a bypass for the IE8 mode switching quagmire. It seems that the biggest risk with deploying the HTML5 doctype early is that if people publish a lot of IE8-incompatible content with the HTML5 doctype before IE8 ships, MS might get cold feet about making the mode situation simple for HTML5.</p>\n\n<p><em>Update:</em> This has been voted down, it seems. Quite obviously now that IE8 has shipped, the above consideration no longer applies. And indeed, <a href="http://hsivonen.iki.fi/doctype/#ie8" rel="nofollow noreferrer">the situation is not simple with IE8</a>.</p>\n'}, {'answer_id': 160753, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Consider your audience and your needs. I write pages such as <a href="http://www.comfsm.fm/~dleeling/physci/ps83/t2mx.xhtml" rel="nofollow noreferrer">class tests</a> with a target audience of students in my courses who use FireFox 3 in an Ubuntu equipped computer laboratory. I need SVG with MathMl embedded as a foreignObject in the SVG. I use the HTML5 doctype and new HTML5 tags freely.</p>\n'}, {'answer_id': 476556, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Take a look at this blog post! Not really a fan of HTML5\n<a href="http://www.webscienceman.com/2009/01/24/html-xhtml-html5-future-html/" rel="nofollow noreferrer">http://www.webscienceman.com/2009/01/24/html-xhtml-html5-future-html/</a></p>\n'}, {'answer_id': 3514166, 'author': 'Mediascreen', 'author_id': 424227, 'author_profile': 'https://Stackoverflow.com/users/424227', 'pm_score': 2, 'selected': False, 'text': "<p>The downside for me mainly concerns validation:</p>\n\n<ol>\n<li>Third party validation tools does not always keep up with changing specs, making my favorite tools unreliable. </li>\n<li>I prefer to validate against strict doctypes to make sure I have closed all elements. It's an easy way to avoid simple but time consuming nesting errors. With HTML 5 you don't have to close your elements, so there is no way to find unmatched tags.</li>\n</ol>\n"}, {'answer_id': 7030883, 'author': 'Faraz Kelhini', 'author_id': 530659, 'author_profile': 'https://Stackoverflow.com/users/530659', 'pm_score': 0, 'selected': False, 'text': '<p>For anyone finding this. The chart at\n<code>http://hsivonen.iki.fi/doctype/</code> shows the various rendering modes different browsers use\ndepending on the DOCTYPE declaration in use. It give you a good idea of how DOCTYPE switching works.</p>\n'}]
['https://Stackoverflow.com/questions/5629', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/653/']