What are the all new HTML document types in VS 2012 RC?

I just installed VS 2012 RC and there are a bunch of new options in the drop-down list of the HTML toolbar:

  • DOCTYPE: HTML5
  • HTML5
  • XHTML5

What is the difference between the two variations of HTML5? I thought the recommendation for HTML5 should not specify DOCTYPE, so the first option is similar to "will you like caffeine with this decaf?"

I was sure that W3C abandoned XHTML in favor of developing HTML, so is this a new version of XHTML5? Update: Wikipedia seems to have responded for this.

Thanks in advance!

Update: A new question was sent for the unanswered bits.

PS: I'm not looking for an explanation of the purpose of the drop-down list, but rather an explanation of what the difference is between choosing "DOCTYPE: HTML5" and "HTML5".

+5
source share
2 answers

Regarding the question of HTML5 and DOCTYPE: HTML5, here is what I observed when using RTM VS 2012:

The DOCTYPE option: {value} tells VS to check your page and try to figure out from the DOCTYPE and html tags which level of validation will be applied. For example, if I create a page that starts as follows:

<!DOCTYPE html>
<html>
...

then the parameter DOCTYPE: {value} becomes DOCTYPE: HTML5. If, however, my page starts as follows:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
...

then it becomes DOCTYPE: XHTML5.

, DOCTYPE: force VS, , / .

+6

XHTML 5.0, XHTML5, HTML5 XHTML. : HTML vs XHTML W3C HTML5. , HTML5 XML- . , "XHTML5" , , , .

HTML5 DOCTYPE. . DOCTYPE W3C HTML5. ( DTD HTML5, , ), , , , "" ​​ " quirks". .

"DOCTYPE: HTML5" "HTML5", . , HTML5 DOCTYPE, , HTML5 . , "HTML5" "quirks", , , .

+2

All Articles