HTML Links & Navigation
The "Hypertext" in HTML refers to the ability to link documents together. Without the <a> tag, the web would just be isolated files.
The Anatomy of a Link
The anchor tag requires the href attribute. This stands for "Hypertext Reference". It is the address the browser goes to. Without it, the tag is just a placeholder.
Absolute vs Relative
Absolute Paths: Full URLs like https://www.google.com. Used for external sites.
Relative Paths: Short paths like /contact.html. Used for internal navigation within your own site.
The Target Attribute
Thetarget attribute controls where the link opens. The most common value is_blank which opens a new browser tab.
View Full Transcript+
This section contains the detailed transcript regarding link creation, including syntax for mailto links, anchor hash links for single-page navigation, and nesting block elements (like images) inside anchors.
