天天看點

連結标簽

連結标簽

  • 頁面連結
    • 從一個頁面連結到另一個頁面
​
<!--   a标簽
href:必填,表示要跳轉到哪個頁面
target:表示視窗在哪裡打開
        _blank:在新的标簽中打開
        _self:在自己的網頁中打開
​
-->
<a href="頁面位址" target="_blank">點選我跳轉到頁面</a>
<a href="https://www.baidu.com">點選我跳轉到百度</a>
​
​
<a href="基本标簽學習.html">
    <img src="../resources/image/1.jpg" alt="是你嗎" title="想你了" width="450" height="450">
</a>      
  • 錨連結
​
<a name="top">頂部标簽</a>
​
​
<!--錨連結
1,需要一個錨标記
2,跳轉到标記
#
-->
<a href="#top">回到頂部</a>
​      

又或者跨網頁連結

一個頁面中的
<a name="down">底部标簽</a>
​
​
另一個頁面中的
<a href="html基本學習.html#down">跳轉</a>      
  • 功能性連結
<!--功能性連結
郵件連結:mailto
qq連結
-->
<a href="mailto:[email protected]">點選此處聯系我</a>      

繼續閱讀