Mickey O'Neil Posted 13 May 2008 Posted 13 May 2008 Can anyone tell me where my girlfriend is going wrong please? She's doing a course on web page building and it is driving me crazy. She's trying to add a local link to go to another page on her site. Here's the part of the code: <body background="whitesilk.jpg"> <center><a href="pagetwo.html">Click here to go to Page 2</a></center> I'm certain the part in bold is the offending part.....i.e not much of a path. I've tried http....www. etc etc ......but i've obviously typed it in wrong 'cus surely you need to put in a www. ??? Just for reference, the there are only 4 pages, called Homepage, pageone, pagetwo etc. They're all in one folder called web page along with a few gifs jpg's etc. Hope i've given enough info!
Manwell Pablo Posted 13 May 2008 Posted 13 May 2008 Can anyone tell me where my girlfriend is going wrong please? She's doing a course on web page building and it is driving me crazy. She's trying to add a local link to go to another page on her site. Here's the part of the code:<body background="whitesilk.jpg"> <center><a href="pagetwo.html">Click here to go to Page 2</a></center> I'm certain the part in bold is the offending part.....i.e not much of a path. I've tried http....www. etc etc ......but i've obviously typed it in wrong 'cus surely you need to put in a www. ??? Just for reference, the there are only 4 pages, called Homepage, pageone, pagetwo etc. They're all in one folder called web page along with a few gifs jpg's etc. Hope i've given enough info! is it offline or on?
act smiley Posted 13 May 2008 Posted 13 May 2008 Thats a relative link, it links to a file in the same folder - it shouldn't be an issue if thats what you're actually intending. Your issue with that link is most likely that the file is nmaed pagetwo.htm not .html.
danny. Posted 13 May 2008 Posted 13 May 2008 you don't need www or http etc. if the file is in the same folder - like act smiley said double check the file you are linking to is EXACTLY the same name (same case, no spaces, same extension etc.) Also make sure there is no <base href="something" /> tag at the top (should be in the <head></head> tags.
Mickey O'Neil Posted 13 May 2008 Author Posted 13 May 2008 is it offline or on? Offline at the mo Thats a relative link, it links to a file in the same folder - it shouldn't be an issue if thats what you're actually intending. Your issue with that link is most likely that the file is nmaed pagetwo.htm not .html. 'tis intended. I'll double check the spelling like danny said. Should it be htm and not html? Cheers chaps.
Chimp Posted 13 May 2008 Posted 13 May 2008 Should it be htm and not html? It should be exactly the same as the filename she's trying to link to. It doesn't really matter if you use htm or html as the file extension. EDIT: One caveat being how the web site host has configured their server software. They may have it set to only recognise .html files, so you'd need to make sure to user .html on all files, especially the index.html page. This would be a very rare scenario though as it's incredibly easy to configure the server software to recognise any number of file extensions.
Mickey O'Neil Posted 13 May 2008 Author Posted 13 May 2008 Thanks everyone...sorted! The speach marks were different! I messed up and when I loaded the page, the code was showing. I could see 2 different styles of speach marks.
lavrentis Posted 13 May 2008 Posted 13 May 2008 Does anyone know how to align center <ul> then <li> Not the text the actual list. Don't worry If you can't, I have basically give up.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.