1.锚元素: 开头<a href="http://google.com"> 结束</a>
<html>
<head>
<title>
</title>
</head>
<body>
<a href="http://goole.com">Google</a>
</body>
</html>
2.绝对链接和相对链接:绝对链接指定资源在Web上的绝对位置 链接其他网站用绝对链接 这样链接的href值中包含http://协议名称以及域名 需要链接到自己网站内部网页时可以使用相对链接 这种链接的href值不以http://开头 也不含域名 只包含想要显示的网页的文件名(或者文件夹和文件名的组合) 如下:contact.html为文件名
<html>
<head>
<title>
</title>
</head>
<body>
<a href="http://goole.com">Google</a>
<a href="contact.html">Contact</a>
</body>
</html>