HTML Links.
Links are what make the web a 'web'. They connect different pages, files, or even sections within the same page.
The Essentials
The <a> (anchor) tag is used to create a link.
The 'href' attribute specifies the destination (URL or path).
Links can point to external websites, local files, or email addresses.
The 'target' attribute determines where the link opens (e.g., _blank for a new tab).
Images can also be turned into links by wrapping them in an <a> tag.
Links can be used to navigate to specific IDs within the same page.
Professional Insights
Absolute vs Relative URLs
Link Titles and Tooltips
Opening in New Tabs Safely
Descriptive Link Text
Critical Pitfalls
Forgetting the http:// or https:// in external links, causing them to break.
Using non-descriptive text like 'here' which provides zero context for accessibility tools.
Leaving the 'href' attribute empty or using '#' excessively without a real destination.
Not checking for 'broken links' which negatively impacts user trust and SEO rankings.