HTML Tutorial



HTML Anchor tag


🔗 HTML Anchor Tag

The <a> tag in HTML is used to define hyperlinks. These links allow users to click and navigate from one page to another, either within the same site or externally.

🛠️ Syntax: <a href="https://example.com">Visit Example</a>

🌐 Example:

Click the link below to visit a website:
Visit google

🔍 Key Attributes of Anchor Tag

  • href: Specifies the URL of the page the link goes to.
  • target: Defines where to open the linked document (_blank opens in a new tab).
  • title: Provides additional info when hovered.
  • download: Used to download a file instead of navigating.

🔄 Example with Target

<a href="https://technorank.in" target="_blank">Open Technorank in New Tab</a>
  
💡 Tip: Always use target="_blank" if you want users to stay on your site while opening external links in a new tab.

🌟 Enjoyed Learning with Us?

Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!

Leave a Google Review