SyntaxStudy
Sign Up

<a>

tag

Creates a hyperlink to web pages, files, email addresses, or any other URL.

Syntax

<a href="url" target="_blank">link text</a>

Example

html
<!-- External link -->
<a href="https://example.com" target="_blank" rel="noopener">Visit Example</a>

<!-- Internal link -->
<a href="/about">About Us</a>

<!-- Email link -->
<a href="mailto:info@example.com">Send Email</a>

<!-- Phone link -->
<a href="tel:+1234567890">Call Us</a>