Thursday, 21 February 2013

Links (HTML BY GOPAL KRISHNA)

--:  LINK  :--


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>

<h1>My first web page</h1>

<h2>What this is</h2>

<p>A simple page put together using HTML</p>

<h2>Why this is</h2>

<p>To learn HTML</p>

<h2>Where to find the tutorial</h2>


<p>

<a href="http://ergopalkrishnawithhtml.blogspot.in/">HTML : Tutorials For Beginner</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://ergopalkrishnawithhtml.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.

TRY IT  AND GO TO NEXT ...
(HTML BY GOPAL KRISHNA)

No comments:

Post a Comment