0
8号线,23栏:文档类型不允许元素“STYLE”在这里 如果我尝试走线路输出格式心不是正确的,如果我把它留在http://validator.w3.org/check给我一个错误。有人可以解释,也可以给我正确的做法。错误,当我尝试使用CSS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Randy's first html web page !</title>
</head>
<style type="text/css">
body
h1
{
background-color:#6495aa;
margin-right:1350px;
}
h2
{
background-color:#b0c4de;
margin-right:1350px;
}
p
{
background-color:#649fff;
margin-right:1350px;
}
div
{
background-color:#efffff;
}
</style>
<h1> Hello Professor</h1>
<h2> By: Randy White</h2>
<P> I haven't done anything like this before.</P>
<P>Seems to be ok</P>
<table border="1">
<tr>
<th>Month</th>
<th>Day</th>
<th>Year</th>
</tr>
<tr>
<td>December</td>
<td>1</td>
<td>2010</td>
</tr>
</table>
<a href="http://www.google.com">Visit Google!</a>
</body>
</html>
这样做谢谢 – user770022 2010-12-02 03:55:53