<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<!--链接标签a:双标签
href属性指向链接地址
1.链接到文件:href="网络地址"(https://www.baidu.com)
2.链接到文件:href="文件全名"(包括后缀名)
3.空链接:href="#"
4.锚点链接
4.1设置锚点:给一个标签设置id(唯一性)
4.2链接到锚点:href="#id"
target属性:打开链接方式(当前窗口_self、新的窗口_blank)
-->
<a href="https://www.baidu.com">百度一下</a>
<a href="new_file.html" target="_self">登陆</a>
<a href="#">空连接</a>
<p id="top">回到这里</p>
<a href="#top">回到顶部</a>
</body>
</html>
11-10
4031
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-10
1859
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)