Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

HTML Basics: Links : Page 3

Learn to link to other pages. Make a link that lets other people email you. Change the color of your links.


advertisement
More About URLs

In your anchor tag you specify the Uniform Resource Locator, or URL, of the place to which you want to link. The URL describes a file by type and location. It is structured like this:

FILETYPE://server/filename.ext

  • FILETYPE describes the file's protocol. For example, a file on a WWW server uses the "http" protocol.
  • The backslashes are directory dividers.
  • The server is the name of the server on which the file resides.
  • The file name is the name of the file, including the pathname if necessary.



For example, "http://www.devx.com/projectcool/allie.html" takes you via the http protocol to the server named www.projectcool.com and the file named allie.html.

There are several types of files. Each type is described by a short word, followed by a colon. These are the most common:

http:
Hypertext Transfer Protocol. This describes a file on a World Wide Web server.
ftp:
File Transfer Protocol. This starts a process of downloading a specified file.
mailto:
Mail. This starts a process of opening an email message to the designated recipient.
gopher:
Gopher. This describes a file on a Gopher server.
wais:
Wide Area Internet Search. This describes a file on a WAIS server.
news:
Usenet News Group. This describes a file is on a Usenet News Server.
telnet:
Telnet. This opens a text connection to the specified server.


Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date