Directories in HTML

Using subdirectories
Several years ago the majority of servers allowed to use only one directory, and the entire page, including the IMAGE files were saved in this single directory.
Today almost all servers allow to work with subdirectories. I really advise you to use this opportunity to structure your pages.

First, if your page has several sections, specify a directory for each section. And in the main directory, you'll go into a subdirectory in accordance with user's choice.
Here’s the example. Gorod.com site has two sections – one for creating webpages and one for information about Israel. Accordingly, I created two subdirectories: WEB-MANUAL and ISRAEL. And from the head section the control is transferred to one of these subdirectories.
Also it’s reasonable to make separated subdirectories for IMAGE files, applets for Java, responses to the message form.

Suppose you have a main directory, which is called ROOT and you've created a subdirectory SUB1. Let’s consider the transitions between these directories.
1. Reference from the main ROOT directory to subdirectory SUB1:
<a href="sub1/you_file.html"> Your image or link </ a>
2. Reference from the SUB1 subdirectory to main directory ROOT:
<a href="../you_file.html"> Your image or link </ a>
Consider the more general case - 3 directories.

Suppose that in a subdirectory SUB1 you made its subdirectory SUB2, that is, you have next structure:

ROOT/SUB1/SUB2

All the possible transitions between these directories are shown below:
1.ROOT-> SUB1:
<a href="sub1/you_file.html"> Your image or link </ a> 
2.ROOT-> SUB2:
<a href="sub1/sub2/you_file.html"> Your image or link </ a> 
3.SUB1-> ROOT:
<a href="../you_file.html"> Your image or link </ a> 
4.SUB1-> SUB2:
<a href="sub2/you_file.html"> Your image or link </ a> 
5.SUB2-> SUB1:
<a href="../you_file.html"> Your image or link </ a>
6.SUB2-> ROOT:
<a href="../../you_file.html"> Your image or link </ a>
Html Hyperlinks
Form Processor
Input Form
Inserting javascript