About 1081 letters

About 5 minutes

#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>

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>

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://hubenchang0515@gmail.com">Contact</a>
HTML Email Link

Created in 5/16/2025

Updated in 5/21/2025