首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

验证 (XHTML 1.0 Transitional): 元素html缺少必需的属性xmlns

2014-01-28 
html head meta http-equiv Content-Type content text/html charsetgb2312 Title 概览

<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'中。

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

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

        

热点排行