Home Advertise with us Forum Articles Sitemap Contact
Logo  

URLs in HTML

Whether it is an HTML document, video, image or any other kind of data, every available resource on WWW has an address. This address can be encoded by a Universal Resource Locator or a URL.

Every web address is defined with respect to certain syntax rules.

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

The very first piece of the syntax, the "scheme"represents the type of internet service being used. Though there are several types available, the most common type of internet service is http.
The middle piece contains the "host, domain & port" representing, domain host, internet domain name & the port number at the host respectively.

The “path” defines the sub directory or path at the server. By default, the HTML document is located at the root directory of the website.

The last piece of the syntax contains the "filename" defining the name of the HTML document like, index.html or cover.asp, etc.

Common internet services or schemes include:

Schemes

Access

file A file on your local PC
ftp A file on an FTP server
http A file on a World Wide Web Server
gopher A file on a Gopher server
news A Usenet newsgroup
telnet A Telnet connection
WAIS A file on a WAIS server
 

HTML Tip 1

Use only hexadecimal #RGB values for colors. The behavior of named colors is browser-idiosyncratic and totally unpredictable.
 
 

HTML Tip 2

You can resize your images without a graphics program by changing the HEIGHT and WIDTH in your image tag.