Ryan's District
November 22, 2008, 05:01:37 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: You are not allowed to view links.
Register or Login
How to Unlock Nokia mobile Phones

You are not allowed to view links.
Register or Login
Request any TV Show / series / Episodes / movie and we will get it for you for free

 
   Home   Help Search Chat Calendar Chess Shop Login Register  
Digg This!
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: HTML tag tutorial - Creating hyperlinks on web pages  (Read 2897 times)
0 Members and 1 Guest are viewing this topic.
ben2ong2
Quality Poster
Paid
Hero Member
*****

Reputation: 17
Offline Offline

Gender: Male
Posts: 2374
9976.80 RD$

View Inventory
Send Money to ben2ong2

View Profile Awards
« on: October 03, 2006, 05:06:42 PM »

HTML documents contain certain 'hot spots'. These hot spots provide anchors that link to other documents/files on the Internet. The stupendous growth of the Internet and the WWW is attributed to these tags. It's hard to imagine a network without links and interlinks.

Lets look at this tag in detail.

You are not allowed to view links.
Register or Login
This will
take you to Webdevelopersnotes.com's main page

is displayed as This will take you to Webdevelopersnotes.com's main page.

Anchor tags have a starting (<A>) and an ([/url]) ending tag.
The HREF attribute is required and takes the URL address of the destination page as value. Without this attribute-value, no links will be created.
Some text is enclosed between the anchor tags. This text serves as the hot spot. When a visitor clicks on this 'hot spot', he or she will be transported to the target page.
Another attribute is TITLE, through which you can provide some explanatory text for that link. Netscape ignores this attribute. To see this attribute in action, place your mouse over the link.

Homepage
Its code is:

You are not allowed to view links.
Register or Login
Homepage



Linking in the same document
So far we have discussed only inter-document linking. What if you want to make the visitor jump to different sections of the SAME page? We employ the <A> tag in this case too, but its format changes slightly. Instead of a URL in the HREF attribute, we use names.

Click here to go to the top.
First, an anchor is set at the desired place in the document using the NAME attribute. In this case I put the following code at the top of the page.

<A NAME="top">[/url]

The value of NAME attribute can be anything you want. Also note, that it is not necessary to enclose any text or other HTML element if the anchor tag is used in this manner.

After setting an anchor with its NAME attribute we employ another set of <A> to make a link that points to it:

<A HREF="#top" CLASS="text">Click here to go to the top[/url].
On clicking this link, you will be taken to the top of the page where I have put the anchor. The HREF attribute takes the value of the NAME attribute mentioned before as its value; the name is prefixed with a # symbol.



Logged

You are not allowed to view links.
Register or Login
Free Paid Survey & Home Business Resources.

You are not allowed to view links.
Register or Login
Free Article Directory | Quality Content
Ryan's District
« on: October 03, 2006, 05:06:42 PM »

 Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Archive - WAP2 - WAP - imode
Sponsors: RAYAN.tv
-

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.235 seconds with 30 queries.

Google visited last this page Today at 08:19:38 AM