The HTML <a>
(anchor) tag is used to create hyperlinks.
1. Basic Link
<!DOCTYPE html>
<html>
<head>
<title>Links</title>
</head>
<body>
<a href="https://www.google.com">Go To Google</a>
<a href="https://www.facebook.com">Go To Facebook</a>
</body>
</html>
<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
