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上面