使用HTML验证器我遇到了两个我无法弄清楚的错误。
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Prime Properties Listing</title>
<link rel="stylesheet" href="prime.css">
<meta charset="utf-8">
</head>
<body>
<div id="wrapper">
<h1><img src="primelogo.gif" alt=“PRIMELOGO” height=“100” width=“650”/></h1>
<a href="index.html"><img src="primehomenav.gif" height="25" width="107" alt="Home"/></a>
<a href="listing.html"><img src="primelistingsbtn.gif" height="25" width="107" alt="listing"/></a>
<a href="financing.html"><img src="primefinancingnav.gif" height="25" width="107" alt="financing"/></a>
<a href="contact.html"><img src="primecontactnav.gif" height="25" width="107" alt="contact"/></a>
<h3> Schaumburg Colonial </h3>
<p>This single family home is a two-story colonial on a large lot</p>
<a href="listing.html"><img src="schaumburgthumb.jpg" height="113" width="150" alt=""></a>
<ul>
<li>Four bedrooms</li>
<li>Two and 1/2 baths</li>
<li>Two car garage</li>
<li>Listing#3432535</li>
</ul>
<h3>Libertyville Condo</h3>
<p>New Construction condo in downtown Libertyvilla</p>
<a href="listing.html"><img src="libertyvillethumb.jpg" height="113" width="150" alt=""></a>
<ul>
<li>Close to train</li>
<li>Two bedrooms,two baths</li>
<li>Two indoor parking spaces</li>
<li>Listing#3432432</li>
</ul>
<div id="footer">
<a href="primeindex.html">Home</a>
<a href="listing.html">Listing</a>
<a href="financing.html">Financing</a>
<a href="contact.html">Contact</a> <br>
<small><i>© Copyright "blahblah" blahblah 2012</i></small> <br /><a href="mailto:blahblah@gmail.com">blahblah@gmail.com</a></div>
</div>
</body>
</html>
2个错误:
1)第11行,第71列:元素img上属性高度的错误值“100”:预期数字但是“相反”。
2)第11行,第71列:错误值“650”/元素img上的属性宽度:预期数字但是“相反。
任何意见都会受到赞赏。
答案 0 :(得分:5)
替换此
alt=“PRIMELOGO” height=“100” width=“650”
带
alt="PRIMELOGO" height="100" width="650"
在线11
。看起来你使用不同的字符来包装属性。