HTML (19)
Linking
The chief power of HTML is to link text ,image to another document or section of a document.Browser highlights the identified the text or image with color or underline.
TAG : <a href = "filename">sample name</a>
<a> = It is a single hypertext related text which is known as Anchor.
<href> = It is used to specify the URL of the Link.
Example ↓↓↓↓↓
<title>My Page</title>
</head>
<body>
<p>This is a linking tag</p>
<a href = "https://www.google.com/">GOOGLE</a>
</body>
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwSX45otv9wziMJ8PkDc6BhxHyX_QaSZafr88vcZW05z-QWpz65F4UaBn_Hckj8OdvfIvYRb-ROl_UG5U7Mgle6-YXyNzGLDxGu887Mcd2mk_6JuDxcRnov63Kpmk7qKNkrKTBtz-asw1w/s320/Screenshot_2.png)
Explained = <a href = "https://www.google.com/">GOOGLE</a>
The word "GOOGLE" is the hyperlink of the "https://www.google.com/" (so if click on "GOOGLE" you are redirected to the"https://www.google.com/")
Complex Example ↓↓↓↓↓
<html>
<head>
<title>Sample Page</title>
</head>
<body>
<ol>
<li>
<a href = "https://www.google.com/">GOOGLE</a>
<center><img src ="C:\Users\Public\Pictures\Sample Pictures\0.png"></center>
</li>
<li>
<a href = "https://in.yahoo.com/">YAHOO</a>
<center><img src ="C:\Users\Public\Pictures\Sample Pictures\download.jpg"></center>
</li>
</ol>
</body>
</html>
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzDEh5cKri75Cq-LH9m9UAv4GmuRP6_pwvqiKVzVq-RoG92Z3y-LfCn1QPhUXMVoBwT6BvJey1vXfxyCbYFqQ8uU122oK12xdQ4DiDXXAgzlg-e5k73E8m9ysZMv2CPRXZPlw6nxrMrPx7/s320/Screenshot_2.png)
TYPES OF LINKING
External Linking = Linking two different document
Internal Linking = Linking various section of the same document
0 Comments