HTML 锚点 空链 超链优化写法

1 另存为   ctrl+shift+s

1.1   锚链接

1.先定义一个锚点   <p id="sd">

2.超链接到锚点      <a href="#sd">回到顶部</a>

   

1.2   空链  不知道链接到那个页面的时候,用空链

<a href="#">空链</a>

1.3   超链接优化写法
<base target="_blank">   让所有的超链接都在新窗口打开

原文地址:https://www.cnblogs.com/yimian/p/6605575.html