Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net ASPX文件赢得';t承认<;第节>;标签_Asp.net_Html - Fatal编程技术网

Asp.net ASPX文件赢得';t承认<;第节>;标签

Asp.net ASPX文件赢得';t承认<;第节>;标签,asp.net,html,Asp.net,Html,我有这个aspx文件,我正在尝试使用它,但每当我使用它时,我都会在它下面出现绿线,错误如下: 不支持元素“section” 我使用的是Visual Studio 2012 <section id="Section1"><div class="inner"><h2>This is Head2</h2><ul class="actions"><li><a href="#content" class="button big

我有这个aspx文件,我正在尝试使用它,但每当我使用它时,我都会在它下面出现绿线,错误如下: 不支持元素“section”

我使用的是Visual Studio 2012

 <section id="Section1"><div class="inner"><h2>This is Head2</h2><ul class="actions"><li><a href="#content" class="button big special">Sign Up</a></li><li><a href="#elements" class="button big alt">Learn More</a></li></ul></div></section>
这是Head2
该元素在HTML5中是新元素,因此只能在以HTML5开头的HTML文档中使用:



母版页或布局文件顶部声明的doctype是什么?

确定,因此如果将其更改为
,错误应该消失。(我已经在VS2012中对此进行了测试和验证)
<!DOCTYPE html>