HTML CSS JavaScript SEO Python Posts Privacy About Contact

HTML Links

Links allow users to click their way from page to page.

HTML links are hyperlinks. You can click on a link and jump to another document.

The HTML <a> tag defines a hyperlink. It has the following syntax: <a href="url">link text</a>

Preview

The Target Attribute

The target attribute specifies where to open the linked document:

  • _self - Default. Opens in same window.
  • _blank - Opens in a new window or tab.

Tip: Use descriptive link text instead of just “click here”—it helps with accessibility and SEO.