|
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
http://www.layoutgalaxy.com
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.

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.
|
|
|