日期:2014-05-20  浏览次数:20862 次

VS2005里面这些代码为什么会有出错提示?怎么改?
<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<Title> 概览 </Title>
<style   type= "text/css ">
<!--
.style1   {
color:   #0000FF;
font-weight:   bold;
}
-->
</style>
</head>
<body>
<meta   http-equiv= "Language "   content= "zh-CN ">
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=UTF-8 ">
<h2   class= "style1 "> 概览 </h2>
<hr   size= "3 ">
<p> 文本区p>
</body>
</html>


错误1:验证   (XHTML   1.0   Transitional):   元素“html”缺少必需的属性“xmlns”。
错误2:无法切换视图:   验证   (XHTML   1.0   Transitional):   元素“meta”不能嵌套在元素“body”中。
错误3:无法切换视图:   验证   (XHTML   1.0   Transitional):   元素“meta”不能嵌套在元素“body”中。

------解决方案--------------------
up
------解决方案--------------------
meta放在title下,head中

<html xmlns= "http://www.w3.org/1999/xhtml ">
------解决方案--------------------
IDE 是用的xhtml 检验的
你用的是html 语法
你说那里错了
------解决方案--------------------
其实不用管它
IE 会认识的
------解决方案--------------------
三句要一句就好了,要那么多干嘛