Web編程入門經典——HTML,XHTML,和CSS(第二章 練習題)

來源:互聯網
上載者:User

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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.