Site hosted by Angelfire.com: Build your free website today!
 
Back Index
 
 

Learning to Code- Links between Pages

If you've stored all of your HTML files in the same directory, creating links between your own pages becomes fairly simple. 
Let's say I have two files, exercise1.html and exercise2.html stored in the same directory. 
To link from exercise1.html to exercise2.html, I place the following text in the body of exercise1.html: 

<a href="exercise2.html">Go to Exercise 2!</a> 

The computer assumes that it doesn't need to go to a different directory unless you tell it to do so. 
 

 
 
Back Index