HTML & CSS Basics
chapter 04 · Links, Images & Buttonsstep 1 / 9 mode · learn
Linking to other pages

The anchor tag

A link uses the <a> tag with an href attribute: <a href="https://example.com">visit example</a> • href is the URL to go to. • The text between <a> and </a> is what the user clicks. Use a full URL (https://...) for external links, or a relative path (about.html, /about) for pages in your own site.