HTML: Links
Learn Links in HTML with practical examples.
HTML — Links
Overview
HTML links let users navigate between pages or sections.
What you'll learn
Syntax
<a href="https://example.com">Visit</a>
Example
<!-- Basic link -->
<a href="https://drschool.web-wab.com">Open DrSchool</a>
<!-- Open in new tab -->
<a href="https://example.com" target="_blank" rel="noopener">New Tab</a>
<!-- Link to section -->
<a href="#contact">Go to Contact</a>
<h2 id="contact">Contact</h2>
Notes
- Always use rel="noopener" with target=_blank for safety.
- Use descriptive link text for accessibility.
Try: Open the Playground: /en/playground/html