<a> : Anchor element

The HTML <a> (anchor) tag is used to create hyperlinks.

1. Basic Link

<a href="https://www.google.com">Go To Google</a> <a href="https://www.facebook.com">Go To Google</a> here the href=”address” attribute holds the address where we want to send the user when a link is clicked e.g. in this example when user click on the Go To Google text then user will reach to the www.google.com website.

Output of the links example program

2. Link to Another Page in the Same Website