HTML Links & Navigation
Links (Anchors) are the fundamental connector of the World Wide Web. Without the <a> tag, the web would just be isolated documents.
The Href Attribute
The href attribute is mandatory. It specifies the URL of the page the link goes to. If the href is missing, the <a> tag will not be a hyperlink.
Absolute vs. Relative
Absolute URLs include the full web address (e.g., https://www.google.com). Use these for external sites. Relative URLs (e.g., /about.html) point to files within your own website directory.
The Target Attribute
To open a link in a new browser tab, we use target="_blank". This is useful for external links so users don't lose their place on your site.
View Full Transcript+
This section contains the full detailed transcript of the video lessons. It covers the syntax of the anchor tag, the difference between absolute and relative paths, the usage of the target attribute for window management, and the mailto protocol for email initiation.
