读书人

VS2005里面这些代码为什么会有出错提示

发布时间: 2012-03-09 21:42:54 作者: rapoo

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 会认识的
[解决办法]
三句要一句就好了,要那么多干嘛

读书人网 >C#

热点推荐