Discussion Locked

Directory Hierarchy in HTML

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do you indicate the location of folder within another folder (one level down) in HTML coding? Thanks.

5 replies

by b_pope

SRC="IMAGES/CAT.GIF"
where images is the folder, cat.gif being a pic.
leave as SRC="IMAGES" to open only folder

by jay eckles

It works almost exactly like cd works in Windows or Unix...even the bit about . being the current directory and .. being the parent directory:

"file" <- "file" in current directory
"./file" <- "file" in current directory
"../file" <- "file" in parent directory
"child/file" <- "file" in child directory

Fully qualified filenames are usually a good idea, so instead of "child/file", you might be better served with
"http://domain/path/child/file"

This discussion is closed to new replies.