0% found this document useful (0 votes)
17 views1 page

HTML Links

HTML links connect web resources, consisting of a source anchor and a destination anchor. External links direct users to resources on different websites, while internal links point to resources within the same website. Examples of both types of links are provided in HTML code format.

Uploaded by

amitakhare092
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

HTML Links

HTML links connect web resources, consisting of a source anchor and a destination anchor. External links direct users to resources on different websites, while internal links point to resources within the same website. Examples of both types of links are provided in HTML code format.

Uploaded by

amitakhare092
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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>

You might also like