Home

Changing Directory on Links/Images/etc

When you make a LINK to a file in a different directory you need to :-

To refer to a file and drill down to a lower directory use
  DirectoryName/FileName

To refer to a file in a higher directory use
  ../FileName

Examples :-

In, for example, a directory chain of
C:/MyDirectory/Coursework/MainHTML/Images/MoreImages

Lets say all your main HTML files are in C:MyDirectory/Coursework/MainHTML

When you want to refer to images stored in MoreImages you would need, for example...
  <img src="Images/MoreImages/image.jpg" >

When you want to refer to images stored in CourseWork you would need, for example...
  <img src="../image.jpg" >

When you want to link to a .html file stored in MyDirectory you would need, for example...
  <a href="../../index.html">Back to file</a>