Ryan's District
November 22, 2008, 06:07:35 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 lesson - What are URLs?  (Read 3458 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:08:49 PM »

(Note: If you are new to Internet you should first read the URL Basics section, which discusses URLs in general and come back to this page.)

What are URLs?
The complete URL of this page is
You are not allowed to view links.
Register or Login

This refers to file 18.php3 located in html subdirectory inside tutorials directory found at You are not allowed to view links.
Register or Login
www.webdevelopersnotes.com
.

Note: The domain name You are not allowed to view links.
Register or Login
www.webdevelopersnotes.com
is not case sensitive but the directory and files names are. (This is especially true for Unix based systems).

URLs are often used as values for HREF attribute of the <A> tag. Now, if I want to link to the next section (19.php3) I can use either "You are not allowed to view links.
Register or Login" or simply "19.php3".
So what is the difference? The former is the complete path of the file while the latter is a relative (relative to this document) path. Since I know that the next page is located in the same directory, I choose to use a relative URL. This helps me in site maintenance and I don't have to type the long address always.

When I want to refer to the homepage of webdevelopersnotes.com from this directory, I use the relative URL "../../index.html" inside HREF. This is a standard Unix notation of referring to URLS. It tells the browser to first come out of the html directory (../) into tutorials directory and from there move, to the next top directory (another ../) which is the root directory of my web-site and then display index.html file.

<A HREF="../../index.html">Homepage<A>

Homepage will take you to the main page of this web-site.


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:08:49 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 7.765 seconds with 31 queries.

Google visited last this page Yesterday at 09:12:09 AM