New "use HTML5 semantic markup" option on File > New MVC 3 project

Sergi Papaseit picture Sergi Papaseit · Apr 19, 2011 · Viewed 19.5k times · Source

Some days ago I installed the ASP.NET MVC 3 Tools Update for Visual Studio 2010.

Just now I went to create a new ASP.NET MVC 3 application and I see that there's a new option on the New ASP.NET MVC 3 Project dialog:

use HTML5 semantic markup

What does selecting this checkbox change in the newly created app compared to not selecting it, other than the literally obvious?
When would you definitely not want to use it, only to keep compatibility with old browsers?

Answer

Darin Dimitrov picture Darin Dimitrov · Apr 19, 2011

Look at the _Layout.cshtml. You will notice HTML5 tags such as <header> and <section>. It also includes the modernizr javascript plugin to the project.

When would you definitely not want to use it, only to keep compatibility with old browsers?

If you don't want to use HTML5 specific tags. Anyway, it's just a checkbox generating a bunch of default markup that you could modify at any moment if you will. So you are not engaging yourself with anything that cannot be undone subsequently. If you are starting a new project, go ahead and check it :-)