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 <,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
Received on Thursday, 21 December 2000 06:56:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:49 UTC