← All references

<a> (एंकर)

<a href="url">text</a>

हाइपरलिंक बनाएं।

<a> टैग

एंकर टैग अन्य पेजों, अनुभागों, ईमेल, या फ़ोन नंबरों के लिए लिंक बनाता है।

एट्रिब्यूट

  • href — लिंक करने के लिए URL।
  • target="_blank" — नए टैब में खोलें।
  • rel="noopener" — बाहरी लिंक के लिए सुरक्षा।
  • id="name" — पेज-में जंप के लिए एंकर।

Example

<a href="https://example.com">External link</a><br>\n<a href="#section">Jump to section</a><br>\n<a href="mailto:hi@example.com">Email us</a><br>\n<a href="https://w3primecode.com" target="_blank" rel="noopener">Open in new tab</a>