Why does VS 2012 RC have both “DOCTYPE: HTML5” and “HTML5” in the web toolbar?

I just installed VS 2012 RC and in the drop-down list of the HTML toolbar it has the following meanings:

  • DOCTYPE: HTML5
  • HTML5

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?"

Note. The toolbar is disabled if you are not editing an HTML page and are not used to generate any type of code. The choice of the toolbar has something to do with checking the contents of the edited file (whether it is a full page, layout or partial view), and I want to find out what is the difference between choosing one of the options or the other.

I would also appreciate if any answers were based on real knowledge, and not guesses about what the "DOCTYPE:" prefix might mean.

+2
source share
1 answer

The answer to this question is fooobar.com/questions/1115269 / ...

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, , / .

+1

All Articles