This is a discussion on "links to sub folder and back" within the Web Page Design section. This forum, and the thread "links to sub folder and back are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
links to sub folder and back
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
links to sub folder and back
Hello all
newbie here looking to learn how to build a website from scratch and needing help. Im currently working my way through my first quals for web design EDCC advanced level and find myself stuck The first section is ok Section one create a site structure 1. Create a folder for web site 2. Create a folder for 2 site sections within the main folder and name them according to the section 3. Create an image folder Think Ive got this section right, in fact I no I have lol Section 2 Create a skeleton website ( think I got this one right as well ) 1. Create a home page and call iit index and place in main folder 2 Create two sections pages, giving then the same name as their folder and place them in their folder Section 3 Create a Navigation Structure Now this is where Im struggling I understand how to make a link <a HREF=”one.html”> But I can seen to make a link back from the folders to the main folder
Cheers and many thanks for any help |
|
|
|
|||
|
Re: links to sub folder and back
To start with, it would need to be a very big site to justify pages going in their own folders. This is not normally the way. you would typically have your pages in the same directory with an images diretory below that.
However, if you have to stick with this approach, the best way forward would probably to use absolute addressing instead of the more usual relative. This means all your page links would need to be of the type; <a href='http//:www.mysite.co.uk/directory/page.html'... and your images referencd in a similar way; <img src='http//:www.mysite.co.uk/images/theimage.jpg'> Like I say, this is not how things are normally done. |
|
|||
|
Re: links to sub folder and back
think of your codeing like this...
../ = backing out of a folder main<-images / =entering a folder main->images say like you have a page but you need to link a file to it but this page is 3 subfolders deep. then you have to use ../../../ that il take you out of 3 folders. Example: ../ ../ ../ (what this is basicly saying is main(file here)file.wmv<-sub1<-sub2<-sub3(page here) get it? and if you need to go into a file without exiting the folder you in but going into another folder then your code would look like main/sub1/sub2/sub3/file.jpg main(page here)->sub1->sub2->sub3->file.jpg now do you get it? Its simple. long but simple. |
|
|||
|
Re: links to sub folder and back
Use dynamic links... "../linklocation" as opposed to static "http://linklocation"
This means if you move the site it will still function fine, also lets you run it off a cd |
![]() |
| Tags |
| link |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DMOZ no longer showing in back links? | ChainsawDR | Search Engine Optimization (SEO) | 4 | Jun 6th, 2008 16:08 |
| [SOLVED] Back links? | thewebkid | Starting Out | 19 | Dec 17th, 2007 13:36 |
| Back Links and PR | cocoonfx | Search Engine Optimization (SEO) | 11 | Jun 29th, 2007 23:46 |
| script to list folder contents as links | taras | JavaScript Forum | 0 | May 26th, 2007 09:59 |