← All tutorials

GoCareerGo Tutorials

HTML Tutorial

Tags, attributes, HTML5 APIs and semantic markup — the web's foundation.

HTML Links (Anchor Tag)

The <a> tag creates a hyperlink to another page, a file, an email address, or a spot on the same page.

<a href="https://example.com">External link</a>
<a href="/about">Internal link</a>
<a href="#section2">Jump to section</a>
<a href="mailto:hi@example.com">Email us</a>
<a href="https://example.com" target="_blank" rel="noopener">New tab</a>
Tip

Always add rel="noopener" (or noreferrer) with target="_blank" — it's both a security and performance best practice.