Sunday, September 16, 2012

HTML URLs

A HTML Anchor tag <a> tag points to an address on the world wide web. So a developer must know what type of URL to use.URL or Uniform Resource Locator is the address of resources found on the Internet.URL can either be a string of characters like "ltslab.blogspot.com" or an Internet Protocol(IP) address like 127.0.0.1.For ex: Type http://74.125.224.72 in your browser and see what Happens.
The general syntax of a URL is resource_type://host.domain:port/path/filename#parameters.
  • Resource types are the different schemes of Internet services. Some of the common schemes include:
    • http - Hyper Text Transfer Protocol
    • https -  - Hyper Text Transfer Protocol connections secured using SSL/TLS.
    • shttp - Secure Hyper Text Transfer Protocol
    • ssh -Secure SHell  connections(like telnet)
    • file - Points to a file in you computer
    • ftp - File Transfer Protocol
  • Host defines the domain host(the default host for http is www)
  • Domain defines the Internet domain name (like ltslab.blogspot.com)
  • Port defines the port number at the host(Port 80 is the default port that the sever "listens to" or expects to receive from a web client).
  • Path defines a  path (of the resource )at the server.
  • Filename defines the name of a document/resource.
  • Parameters  are generally used to pass data between web pages(generally PHP ).
Stay tuned.

0 comments:

Post a Comment