W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Re: Absolute vs. relative references

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Thu, 21 Dec 2000 10:48:20 CET
Message-Id: <200012211156.GAA21172@tux.w3.org>
To: html-tidy@w3.org
In <4.3.2.7.0.20001221024038.00b28238@127.0.0,1>, Howard Kaikow <kaikow@standards.com> writes:
> Does the HTML, or other spec, state anything about whether absolute or
> relative paths should be used in, e.g., HREFs for content local to that web
> site.

Either way of writing URL references is valid, and which one is better depends 
on your site structure, for example I personally favour using absolute paths 
for content in another branch of the site tree, instead of using 
../../../../../otherbranch/index.html from one file and ../../../../../../otherbranch/index.html
from another.

> Using relative paths allows the downloading of a set of pages so that they
> may be used without being connect to the internet.

Depends on how clever the program downloading the files is, it may be able to 
replace paths, for example with Netscape you can get paths changed by
editing the page, then saving it locally.

-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Thursday, 21 December 2000 06:56:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT