Page 68
1.建立一個link to menu的頁面,添加一個到wrox的網站的連結。
<?xml version="1.0" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> <title>A menu example</title></head><body><h1><a id="top">Wrox Cafe Menu</a></h1> <div id="nav"><a href="menu.html#starters"target="_blank">Starters</a> | <a href="menu.html#mains"target="_blank">Main Courses</a> | <a href="menu.html#deserts"target="_blank">Desserts</a></div> <p>Welcome to the Wrox Cafe, where we pride ourselves on good, honest home cooked food at good, honest prices.</p> <p>Wrox Cafe is a fictional cafe brought to you by <a href="http://www.wrox.com" target="_blank">Wrox Press</a></p>
結果:
2.採用如下語句,在應當具有連結的部分周圍放置<a>元素
<p>To find out why advertising on our site works, visit the testimonials page.</p>
answer:
連結應該放到引起人注意的地方,而且能夠表明連結檔案的內容
<p>To find out why advertising on our site works, visit the <a href="http://www.........">testimonials<\a> page.</p>
3.下列html語句有什麼問題/
<p>You can read the full article <a>here</a></p>
answer:
連結放的位置不對,應該放到更能表明意圖的full article上面