HTML & CSS
/Beginner
Links & Navigation
Definition
The `<a>` (Anchor) element is used to create hyperlinks to web pages, files, email addresses, or locations in the same page.
Explain Like I'm New
The tag that makes the web a 'Web'. It connects pages together. You wrap text or images in an `<a>` tag, provide a destination URL in the `href` attribute, and it becomes clickable.
Real World Example
The navigation bar at the top of a website is just a list of `<a>` tags styled with CSS to look like buttons.
Common Use Cases
- •Navigating between pages
- •Downloading files
- •Opening email clients
Interactive Example
Interview Questions
basic
- What attribute is required on an `<a>` tag to make it work?
intermediate
- How do you make a link open in a new tab?