前言
在第一单元中,咱们了解了 "ML":Markup Language,它的做用是: tell the strure of content;在这一单元,进一步认识 HT,它的做用是:link to other pageshtml
HT 的相关知识
以<a href="elixir.html'>elixirs</a>
为例web
<a>
的做用是告诉 Web Browser 去 create a hyperlink to another web page,同时让<a>
中的 **content(职责是充当LABEL) **变成clickable 的。
- href 的意思是"hypertext reference",这是一个 old Internet family name,"hypertext reference"的另一个名字是 resource on the Internet or your computer,是告诉 Browser 用于 use the attribute to get to the link points 的。
- ”elixir.html"是指同文件里面的relative paths,**(职责是充当 **Destination ),若是destination是上一级的,就用../(这是告诉 Browser 去找 parent folder),若是是下一级,就用“images/"的形式。
Understanding attributes
href = "top10.html"code
- 首先是 attibute name, 这里是href
- 而后是equal sign, 也就是 ”=“
- 接下来是attribute value
- 别忘了用double quote 用来around attribute value
注意事项:
对于特定的 tag, 有特定的 attributehtm
作错的题:


正确答案:../../images/artists/chrif.gif
解析:首先,coldplay.html 在 rock 这一级的directory 中,而后它应该go UP 2级,而后再从中找到images,继续找artists,而后找到chrif.gifblog