Interview Question

What is the anchor tag?

`<a>` should be used for its proper HTML purpose.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

`<a>` is an element that creates a hyperlink when it has an `href` attribute. • Use it for navigation to another URL or location, and write link text that describes the destination. • Browsers apply the native parsing and behavior defined for this element. • Using its native meaning helps assistive technology understand the content when the element has accessibility semantics.

💡 Simple Example

<a href="/about.html">About our school</a>

⚡ Quick Revision

`<a>` should be used for its proper HTML purpose.