HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Types of Hyperlinks
Post new topic   Reply to topic    HTML Help Forum Index -> Member Tutorials
View previous topic :: View next topic  
Author Message
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8749
Location: Castle Pines North, CO USA

PostPosted: Sat Mar 04, 2006 3:26 pm     Types of Hyperlinks Reply with quote

There are basically three types of hyperlinks: relative, absolute, and virtual.

RELATIVE:
Code:
<a href="../default.asp">Home</a>

ABSOLUTE:
Code:
<a href="http://www.example.com/default.asp">Home</a>

VIRTUAL:
Code:
<a href="/default.asp">Home</a>


There are benefits to using each one. Relative links are just that - they rely on the path of the file they are located in. For example, in the example above, Home would be in a folder off of the root web and clicking on it would take you to the home page.

Absolute links do not relate to the path of the file they are in. Instead - clicking on the example link you take you directly to the page - no matter what file it is placed in.

Virtual links are similar to relative links - they rely on the path of the file to one extent: they actually go back to the root and then over. So in the example above, the code could be placed in any folder on the web site and it will take you back to the home page.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Member Tutorials All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial