Sunday, February 26, 2012

The use of Hyperlinks in HTML


Hyperlinks is a reference(address) of some resources in the web. The resource may be html page, image, sound file, movie etc. we use the <a> to denotes the hyperlinks.
Html links
The syntax of the html link is: <a href="url">Link text</a>
Here href attribute is used for the html link.
Ex:<a href="http://www.infojanala.blogspot.com/"> visit infojanla</a>
So lets go for an example
  1. open the notepad
  2. type the code
<html>
<head>
<title>Last page</title>
</head>

<body>
<h1>Congratulations!</h1>
<p>
<a href="http://www.infojanala.blogspot.com/">This text</a> is a link to a page on the world wide web
</p>


<p>
<b>you have reached the last page on the internet. We hope that you have enjoyed surfing the web</b>
</p>
</body>
</html>
3.Save the file test_link_lastpage.html
And then the output is 

No comments:

Post a Comment