Saturday, April 28, 2012

HTML Advanced tutorial 24 : HTML URL

A URL ( Uniform Resource Locator ) is another word for a web address. A URL can be composed of words,  or an Internet Protocol ( IP ) address. Most people enter the name of the website when surfing, because names are easier to remember than numbers.

When you click on a link in an HTML page, an underlying <a> tag points to an address on the world wide web. A URL is used to address a document (or other data) on the world wide web. A web address, like this, http://www.yoursite.com/html/index.html follows these syntax rules.

scheme://host.domain:port/path/filename


Below is the explanation of terms.

scheme -    defines the type of Internet service. The most common type is http
host -         defines the domain host (the default host for http is www)
domain -    defines the Internet domain name, like yoursite.com
:port -        defines the port number at the host (the default port number for http is 80)
path -        defines a path at the server (If omitted, the document must be stored at the root directory of the web site)
filename -   defines the name of a document/resource

Common URL Schemes
These are lists some common schemes.

http  =  HyperText Transfer Protocol :
Common web pages starts with http://. not encrypted

https  =  Secure HyperText Transfer Protocol:
Secure web pages. All information exchanged are encrypted

ftp  =  File Transfer Protocol:
For downloading or uploading files to a website. Useful for domain maintenance

file:
A file on your computer

HTML Advanced tutorial 25 : HTML URL Encoding  >>
<<  HTML Advanced tutorial 23 : HTML Entities

No comments:

Post a Comment