HTML Links are connections from one web resource to another.
A link has two ends, An
anchor and a direction. The link starts at the “source” anchor and points to the “destination”
anchor, which may be any Web resource such as an image, a video clip, a sound bite, a
program, an HTML document or an element within an HTML document.
External Links:
An external link is a type of hyperlink that directs users to a resource, such as a webpage,
image, or document, located on a different website or domain.
Example: The implementation of external links
<!DOCTYPE html>
<html>
<head>
<title>Internal Link Example</title>
</head>
<body>
<p>Click on the following link</p>
<a href="https://www.geeksforgeeks.org ">GeeksforGeeks</a>
</body>
</html>
Internal Links:
An internal link is a type of hyperlink whose target or destination is a resource, such as an
image or document, on the same website or domain.
Example: The implementation of Internal Links
<!DOCTYPE html>
<html>
<head>
<title>Internal Link Example</title>
</head>
<body>
<!--internal link-->
<p>
<a href="./index2.html">
GeeksforGeeks Contribute
</a> <br>
It is a link to the contribute
page on GeeksforGeeks' website.
</p>
</body>
</html>