[PLUG] Not seeing whole page loaded from local httpd server

Evan Heidtmann clydefrog at adnap.no-ip.com
Mon Oct 11 20:34:02 UTC 2004


On Mon, 2004-10-11 at 20:17, Rich Shepard wrote:
>    In the books and Web pages I've been reading to learn xhtml and css I see
> some links specifed as, <a href="/filename.html"> or <a
> href="#filename.html"> or <a href="filename.html">. I'm sure these are all
> relative or absolute references but none of the resources that I've read
> explains the differences.

I don't know where I learned it, but I can explain it.

When referenced from www.hostname.com/subdir/page.html,

/file.html --- means --- www.hostname.com/file.html
file.html  --- means --- www.hostname.com/subdir/file.html

(These two are like paths in UNIX)

#thing     --- means --- www.hostname.com/subdir/page.html#thing

This refers to an anchor on page.html (<a name="thing">anchor</a>).

A little googling ("anchor name") turns up this page:

http://www.w3.org/TR/REC-html40/struct/links.html

Seems to be a good reference for all of this.

Evan





More information about the PLUG mailing list