Re: HTML - portable ?!

Rik Harris (rik@rdt.monash.edu.au)
Sun, 30 Jan 94 11:36:58 +1100
Dan Wallach <dwallach@cs.Princeton.EDU> wrote:
> iwj10@cus.cam.ac.uk (Ian Jackson) wrote:
> >2. then copy/install/upload/whatever it to an appropriate place on an
> >appropriate W3 server, and have it still work.
>
> If you don't care about testing the hyperlinks, you can just
> write the document with "http:" URL's, and use the "Open Local"
> functionality mentioned above.
>
> If you want everything fully functional at home, you can either
> set up an http server AND convince your home machine that it should
> respond to net traffic aimed at the real inet site, or you can
> write your document at first with "file:" URL's, and use a sed
> filter to convert them to "http:" URL's before you install them.
>
> >Can someone who knows about URLs, etc, please volunteer (by email) to
> >hold my hand a bit ? I've tried finding the specs for HTML, but they
> >weren't particularly accessible.
>
> The best place to start is to look at the HTML for existing documents.
> Mosaic has a great "View Source" (or whatever) option so you can arbitrarily
> look under the hood of any HTML document. Alot of people seem to start
> off by writing their own home page. That's what I did.
I think what you are looking for is relative addressing. The first
file can be loaded in with the 'file://localhost/...' URL as
suggested, and all links in the document can be formed by specifying
the link like: <A HREF="file2.html">Link Here</A>, or <A
HREF="subdir/file3.html">Another directory</A>.
This means the whole group of files can be moved wherever you want
without having to change a single byte within the files. The only
thing that changes is the URL used to reference it the first time.
You can put it on an FTP site if you like, and it will still work.
Send me private email if you want more specifics.
have fun,
rik.
--
Rik Harris - rik.harris@vifp.monash.edu.au || Systems Programmer
+61 3 560-3265 (AH) +61 3 90-53227 (BH) || and Administrator
Fac. of Computing & Info.Tech., Monash Uni, Australia || Vic. Institute of
http://www.vifp.monash.edu.au/people/rik.html || Forensic Pathology
[
Usenet Hypertext FAQ Archive |
Search Mail Archive |
Authors |
Usenet
]
[
1993 |
1994 |
1995 |
1996 |
1997
]

faq-admin@landfield.com
© Copyright The Landfield Group, 1997
All rights reserved