我试图获得一些东西来通过W3C验证(这是我的第一个HTML设计类)。我一直收到相同的错误(在这个上下文中的ul元素中不允许文本.)。有五个错误,它们都在相同的位置,但在不同的线上。
如果有人能看看这个,告诉我我做错了什么。谢谢。
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fish Creek Animal Hospital Services</title>
<meta charset="utf-8">
</head>
<body>
<h1>Fish Creek Animal Hospital</h1>
<div><b><a href="index.html">Home </a>
<a href="services.html">Services </a>
<a href="askvet.html">Ask the Vet </a>
<a href="contact.html">Contact </a></b></div>
<ul>
<li><strong>Medical Services</strong></li>
We offer state of the art equipment and technology.
<li><strong>Surgical Services</strong></li>
Full range of surgical procedures including orthopedics and emergency surgeries.
<li><strong>Dental Care</strong></li>
A dental exam can determine whether your pet needs preventative dental care such as scaling and polishing.
<li><strong>House Calls</strong></li>
The elderly, physically challenged, and multiple pet households often find our in-home veterinary service helpful and convenient.
<li><strong>Emergencies</strong></li>
At least one of our doctors is on call every day and night.
</ul>
<div>
<small><i>Copyright © 2013 Fish Creek Animal Hospital
<a href="mailto:csigman1@gmail.com">csigman1@gmail.com</a>
</i></small>
</div>
</body>
</html>发布于 2013-10-12 22:36:55
没有用HTML标记包装的文本的任何部分都会导致此错误。给,这是名单。列表中的每一项(文本块)都需要一个包装整个内容的<li>标记。
<ul>
<li>text content</li> <!-- correct -->
<li></li>text content <!-- incorrect -->
</ul>因此,在脚本中,从以下内容中更改所有项目:
<li>
<strong>Surgical Services</strong></li>
Full range of surgical procedures including orthopedics
and emergency surgeries.对此:
<li>
<strong>Surgical Services</strong>
Full range of surgical procedures including orthopedics
and emergency surgeries.
</li>https://stackoverflow.com/questions/19339842
复制相似问题