Hyperlink by G Krishna Chauhan

So far you've been making a stand-alone web page, which is all very well and nice, but what makes the internet so special is that it all links together.

The 'H' and 'T' in 'HTML' stand for 'hypertext', which basically means a system of linked text.

An anchor tag (a) is used to define a link, but you also need to add something to the anchor tag -
 the destination of the link.

Add this to your document:

<html>
<head>
<title>My first web page</title>
</head>
<body>
<p>
<a href="http://hakenkreuzsofttech.blogspot.in/">Language Center</a>
</p>
</body>
</html>




The destination of the link is defined in the href attribute of the tag. The link can be absolute, such as ' http://hakenkreuzsofttech.blogspot.in/ , or it can be relative to the current page.

So if, for example, you had another file called 'love.html' then the line of code would simply be <a href="love.html">Love is God</a> or something like this.



No comments:

Post a Comment