<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>标题</title>
</head>
<body>
<!-- a标签定义链接,从一个页面链接到另一个页面 -->
<!--href-->
<a href="page.html">内部链接</a><br>
<a href="https://www.csdn.net">外部链接</a><br>
<a href="#">空链接,跳转到当前页面的顶端</a><br>
<a href="#head">回到顶部</a><br>
<a href="#position_id">锚点链接</a><br>
<!--target-->
<a href="https://www.csdn.net" target="_self">同窗口打开</a><br>
<a href="https://www.csdn.net" target="_parent">当前窗口打开</a><br>
<a href="https://www.csdn.net" target="_top">顶端打开</a><br>
<a href="https://www.csdn.net" target="_blank">新窗口打开</a><br>
<!-- 网页没有框架时,_self、_parent、_top的显示方式几乎相同 -->
<h3 href="https://www.csdn.net" id="position_id">这是一个锚点</h3>
</body>
</html>
Internal link
External link
Empty link, jump to the top of the current page
Back to the top
Anchor link
Open the same window Open the
current window Open the
top Open a
new window open