HTML Hyperlink
In HTML, hyperlink can be used by using <a> tag. Hyperlink is a group of word which can be clicked and get executed by opening clicked link.
Syntax of HTML hyperlink is as below:
Here ‘Visit coffeewithcode’ text can be clicked together and for this clickable text destination is http://www.coffeewithcode.com which is described in href attribute of <a> tag. So on click of Visit coffeewithcode it will open http://www coffeewithcode.com in same tab / browser.
In case if once required to open hyperlink in new tab / browser window then also it is possible.
For this one need to add new attribute target and value for this attribute is “_blank”.
So new syntax will be as below:
Now on click on ‘Visit coffeewithcode’ will open http://www coffeewithcode.com in new tab / windows.