新[使用HTML5语义标记"选项对文件>新的MVC 3项目 [英] New "use HTML5 semantic markup" option on File > New MVC 3 project
问题描述
几天前我安装了 ASP.NET MVC 3工具Visual Studio的更新 2010
Some days ago I installed the ASP.NET MVC 3 Tools Update for Visual Studio 2010.
刚才我去创建一个新的ASP.NET MVC 3应用程序,我看到有一个在新ASP.NET MVC 3项目
对话框一个新的选项:
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:
使用HTML5语义标记
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?
推荐答案
看 _Layout.cshtml
。你会注意到HTML5标记,如<报头GT;
和<节>
。它还包括 Modernizr的
的javascript插件项目。
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?
如果你不想使用HTML5特定的标记。无论如何,这只是一个复选框,产生了一堆的默认标记,如果你愿意,你可以修改在任何时刻。所以你不与任何不能被撤销以后从事自己。如果你开始一个新项目,继续检查: - )
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 :-)
这篇关于新[使用HTML5语义标记&QUOT;选项对文件&gt;新的MVC 3项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!