Asp.net ASPX文件赢得';t承认<;第节>;标签
我有这个aspx文件,我正在尝试使用它,但每当我使用它时,我都会在它下面出现绿线,错误如下: 不支持元素“section” 我使用的是Visual Studio 2012Asp.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
<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>