Search

Sponser

Wednesday, 24 October 2012

Linking


A hyperlink is a page element (usually a word, button, or image) that "points to" another web page. When a visitor clicks the link in a web browser, the browser goes to the specified web page, which may be within the same web site, or in any other web site in the world.
URL
Each web page has a unique address, called a Uniform Resource Locator (URL). For web documents, the format of a URL is:
http://domain/directory/.../document.html
For instance, in http://www.webpage-maker.com/guide/index.html, "www.webpage-maker.com" is the domain, "guide" is a directory and "index.html" is the document filename. Often, the document filename is left out of the URL. In these cases, the URL points to the default document in the specified domain or directory, which is usually named "index.html".
URLs are typically used to link to documents that are on other web sites. For more information on URLs, see the World Wide Web Consortium website on naming and addressing at www.w3.org/Addressing/.
There are two basic forms of hyperlinks that are used in web documents: Absolute and Relative.
  • Absolute paths
Absolute pathsprovide the complete URL of the linked document, including the protocol to use (usually http:// for web pages). For example, http://www.webpage-maker.com/index.html is an absolute path.
  • Relative paths
A relative link refers to a document by a kind of shorthand, based on the location of the target document in relation to the one containing the link. An example of a relative link is "index.html".
When you create a local link (a link from one page to another on the same site), you generally don't specify the entire URL of the document you're linking to; instead, you specify a relative path from the current document or from the site's root folder.
Note: While you can also use absolute-path links for local links (to documents in the same site), that approach is discouraged - if you move the site to another domain, all of your local absolute-path links will break. Using relative paths for local links also provides greater flexibility if you need to move files within your site.
Your home page should be named index
A home page is the page a visitor will first see when visiting your site by entering your URL. On most sites this page will be called "index.html". Some sites may use a different name but most sites will allow you to use any one of these or other default names.
This is important because the first page of your website, the home page should be named index. 

Recommeded Links