Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Building Your HTML  Document
 Tables
 Frames
 Including Images into  Document
 Including Multimedia
 Developing HTML  FORMS
 Using Style Sheet
 Understanding URLs
 Understanding URLs
   Understanding URLs
 Absolute URLs
 Relative URLs
 
 Relative URLs
 Type of URL Schemes
 
   HTTP
   Mailto
 News
 File Transfer Protocol
 
 File Transfer Protocol
 File
 
 File
 Telnet
 
 Telnet
 Using JavaScript
 Using Java

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




  Understanding URLs > Relative URLs

  Relative URLs

Relative URLs (partial URLs) are used for accessing file when the full Internet address is unnecessary. Relative URLs are also called because the address is taken to be relative to the URL of the document in which it is embedded. When relative URLs are accessed the base part of the URL is automatically concatenated to the relative URL by the browser, so it doesn't have to be explicitly identified. Relative URLs can be used anywhere and an absolute URL can be used within the body of an HTML document. Relative URLs are an absolute necessity if you want your web site to be completely portable.

Example

Note

Click on any of the hyperlink embedded on the page. For example if you are clicking on products it will take you to the products.html page and automatically adds the products.html to the address as http://www.layoutgalaxy.com/products.html.

In this Exercise you will learn to use relative urls.

Type the URL in the Location box as "www.layoutgalaxy.com" and press enter.

The browser displays the web site specified in the location box. Move the cursor over the articles button. This displays the relative path on the status bar. Click articles to view the page.

The articles page is now displayed with relative path automatically appearing in the location box.

Back Next


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




17, Vadsarvala Nivas, 65-A, J. Nehru Road, Mulund (W), Mumbai - 400 080 INDIA
Tel : 91-22-25795588, 91-22-25780444 Fax : 91-22-25793397
Email : ionline@vsnl.com
© Image Online 2001-2003