Anchor Tag Basics
The <a> (anchor) element creates a hyperlink. The most important attribute is href (Hypertext REFerence), which specifies the URL the link points to. The clickable content goes between the opening and closing tags.
Absolute vs Relative URLs
An absolute URL includes the full address starting with https://. Use these for external websites. A relative URL omits the domain and is resolved relative to the current page — use these for internal pages within the same site. Relative URLs make your site portable across different domains and environments.
href="https://example.com"— Absolute (external)href="/about.html"— Root-relative (internal)href="about.html"— Relative to current folder