HeadlinesBriefing favicon HeadlinesBriefing.com

HTML-101 Series: Learning Paths and Anchor Tags

DEV Community •
×

Developer Himanshu Bhatt is learning in public with his HTML-101 series, documenting his journey from scratch. This post dives into the anatomy of the <a> tag, explaining paths and different types of href values like absolute, relative, and fragment links.

Bhatt covers crucial attributes such as target, rel, and download, emphasizing security with noopener and noreferrer for external links. He also discusses link states and accessibility, reminding developers to always include a focus indicator for keyboard navigation.

The post provides practical examples of mailto and tel links, including formatting and extra parameters. Bhatt highlights common mistakes, such as forgetting rel attributes with target="_blank", and offers best practices for using links versus buttons.

This series is a valuable resource for beginners, encouraging discussion and inviting feedback to improve understanding.