#HTML's links
HTML links are marked up using the <a>
tag.
<a href="URL">Displayed content</a>
- The displayed content does not have to be text; it can be any tag, for example, an image.
Example:
<a href="https://xplanc.org/primers">Primers 编程伙伴</a>
HTML Link
Clicking the above link will navigate the current browser tab to https://xplanc.org/primers. To open the link in a new tab, add the attribute target="_blank"
:
<a href="https://xplanc.org/primers" target="_blank">Primers 编程伙伴</a>
HTML Link
The link address can also be non-webpage addresses, such as email addresses. Clicking will open the mail client.
- If no mail client is installed, clicking might have no effect.
<a href="mailto://[email protected]">Contact</a>
HTML Email Link