<a> (యాంకర్) మూలకం హైపర్లింక్ను సృష్టిస్తుంది. దాని href గమ్యం, ఇది URL, మార్గం, పేజీ-లోపు యాంకర్ లేదా ప్రత్యేక స్కీమ్ కావచ్చు.
External site
Internal page (relative)
Jump to an element with id="section2"
Send email
Call us
<a> (యాంకర్) మూలకం హైపర్లింక్ను సృష్టిస్తుంది. దాని href గమ్యం, ఇది URL, మార్గం, పేజీ-లోపు యాంకర్ లేదా ప్రత్యేక స్కీమ్ కావచ్చు.
External site
Internal page (relative)
Jump to an element with id="section2"
Send email
Call us
<a href="https://other.com" target="_blank" rel="noopener noreferrer">
Opens in a new tab
</a>
target="_blank" కొత్త ట్యాబ్ను తెరుస్తుంది, కానీ మీరు rel="noopener" ని జోడించాలి: దానిని లేకుండా, కొత్త పేజీ window.opener ని యాక్సెస్ చేయగలదు మరియు సంభవ్యంగా మీ పేజీని పునర్నిర్దేశించవచ్చు ("tab-nabbing" దాడి). noreferrer రెఫరర్ హెడర్ను కూడా తీసివేస్తుంది. ఆధునిక బ్రౌజర్లు _blankకు noopener ని సూచిస్తాయి, కానీ దానిని స్పష్టంగా జోడించడం ఉత్తమ అభ్యాసం.
<a href="..." rel="nofollow">Don't pass SEO ranking (untrusted/user links)</a>
<a href="..." rel="noopener">Security: no window.opener access</a>
<a href="..." rel="sponsored">Paid/affiliate link</a>
<a href="#top">Back to top</a>
...
<div id="top">...</div> <!-- the link scrolls here -->
క్లిక్ చేయడం fragment ని పోలిన id కలిగిన మూలకానికి స్క్రోల్ చేస్తుంది.
యాంకర్లు వెబ్ నావిగేషన్ యొక్క వెన్నెముక.
href స్కీమ్ల (సాపేక్ష, సంపూర్ణ, fragment, mailto/tel), target="_blank" + rel="noopener" భద్రతా జత, మరియు SEO-సంబంధితమైన rel విలువల గురించిన జ్ఞానం సరైన, సురక్షితమైన లింక్కు అవసరం.