HTML uses the (<a>) Anchor tag to create a link to another document. This anchor tag have two important attributes to create a link in web pages.
=> Href Attribute
=> Target Attribute
Href Attribute
An (<a>) anchor can point to any resource on the Web by Href tag. Href point to any HTML page, image, sound file, movie, etc.
Target Attribute
With the target attribute, you can define where the linked document will be open on browser.
If you didnt specify target attribute in anchor link means the link will open in same browser window.
If you specify target="_blank" in anchor tag means the link will open in new window or tab on the browser.
Example of anchor tag
Below example shows that how to use Anchor tag on web.
<html> <head> <title>u3schools-online web tutorial</title> </head> <body> <a href="http://u3schools.com"> Learn Tutorials </a> <br> <a href="http://u3schools.com" target="_blank"> Learn Tutorials </a> </body> </html>
Output of above coding