Sunday, May 2, 2010

Relative URLs, Linking To Another Page HTML

A relative URL doesn’t contain any naming scheme information. Its path ganerally refers to a resource on the same machine as the current document. Relative URL’s may contain relative path components (e.g., “..” means one level up in the hierarchy defined by the path) and may contain fragments identifiers.

Relative URL’s are resolved to full URL’s using a base URL. Base URL is specified in the documents head. As an example of relative URL resolution, assume we have the base URL “http://acme.com/support/intro.html”. The relative URL in the following markup for a hypertext links is

a href=”suppliers.html”> Suppliers would expand to the full URL “http://www.acme.com/support/suppliers.html” , while the relative URL in the following markup for an image is

img scr=”../icons/logo.gif” alt=”logo”> would expand to the URL “http://www.acme.com/icons/logo.gif”

In HTML URL’s are used to:

Link to another document or resourse.

Link to an external style sheet or script.

Create an image map.

Submit a form.

Create frame document.

Cite an external refernce.

Refer to metadata convantion describing a documents.

Tim burners lee originally developed HTML and was popularized by the Mosaic browser. During 1990s it has blossomed with explosive growth of the WEB. During this time HTML has been extended in a number of ways. HTML 2.0 specification was develop under the protection of the internet Engineering Task Force (IETF) to codify common practice in late 1994.

0 comments:

 

blogger templates | M