Recent

6/recent/ticker-posts

HTML (19)

HTML (19)

turned on computer monitor displaying coding application photo ...


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 ↓↓↓↓↓

<html>
<head>
<title>My Page</title>
</head>
<body>
<p>This is a linking tag</p>
<a href = "https://www.google.com/">GOOGLE</a>
</body>
</html>



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>






TYPES OF LINKING


External Linking = Linking two different document

Internal Linking = Linking various section of the same document

Post a Comment

0 Comments