a
a
打开新页面
用 target="_blank"
打开的页面允许新的页面访问原来的
<a href="https://markodenic.com/" target="_blank" rel="noopener">
Marko's website
</a>
如果你想在一个新的标签页中打开文档中的所有链接,你可以使用 <base>
元素。

邮件、SMS 等
<a href="mailto:{email}?subject={subject}&body={content}"> Send us an email </a>
<a href="tel:{phone}"> Call us </a>
<a href="sms:{phone}?body={content}"> Send us a message </a>
download
你可以在你的链接中使用下载属性来下载文件,而不是导航到它。
<a href="path/to/file" download> Download </a>