19
onoopener:Preventsthenewpagefromaccessingtheoriginalpage’swindow
object.
onoreferrer:Preventssendingthereferringpage’sURL.
3.TypesofLinks
InternalLinks:Linktoanotherpageonthesamewebsite.
<ahref="contact.html">ContactUs</a>
ExternalLinks:Linktoapageonadifferentwebsite.
<ahref="https://www.example.com">VisitExample</a>
AnchorLinks:LinktoaspecificpartofthesamepageusinganID.
<ahref="#section1">GotoSection1</a>
<h2id="section1">Section1</h2>
EmailLinks:Opentheuser’semailclient.
<ahref="mailto:
[email protected]">EmailUs</a>
TelephoneLinks:Startaphonecallonmobiledevices.
<ahref="tel:+1234567890">CallUs</a>
DownloadLinks:Letusersdownloadfiles.
<ahref="file.zip"download>DownloadFile</a>
5.BestPractices
UseDescriptiveLinkText:Makesurethetextofthelinkclearlyexplainswhereit
willtaketheuser.
TestLinks:Regularlycheckthatalllinksworkcorrectly.
Accessibility:Improveaccessibilitywitharia-labelorotherARIAattributesforusers
withdisabilities.
Prepared By: Kale J. N. (AP, Computer Department, Sanjivani College of Engineering, Kopargaon)