Tutorials HTML Links & Anchors
Ch 5 / 21 ← Prev Next →
Chapter 5 Beginner 8 min read Core Elements

Links & Anchors

Hyperlinks are what make the web a web. The anchor tag creates links to other pages, external websites, email addresses, and sections within the same page.

🎯 What you'll learn
Create links to other pages and websites
Open links in a new tab
Link to email addresses and phone numbers
Create anchor links within a page
🚀
Sponsored
Learn Full-Stack Development — Join K2 Courses
Live mentoring · Real projects · Placement support · Certificate
Enroll Free
Advertisement
Google Ad — 728×90 Leaderboard

Try It Yourself

Live Editor
✎ Editor
👁 Preview
Quick Check — Chapter 5

Which attribute on <a> makes a link open in a new browser tab?

📄 Chapter Summary
  • The <a href="..."> tag creates hyperlinks.
  • Use target="_blank" to open links in a new tab.
  • Add rel="noopener noreferrer" for security.
  • Use href="#id" for same-page anchor navigation.
💡
Sponsored
Master CSS — The Next Step After HTML
56 chapters · Flexbox, Grid, Animations · Free to start
Start CSS →
Advertisement
Google Ad — 300×250 Medium Rectangle
Join WhatsApp Channel