Our system detected that your browser is blocking advertisements on our site. Please help support FoxesTalk by disabling any kind of ad blocker while browsing this site. Thank you.
Jump to content
Mickey O'Neil

HTML help please

Recommended Posts

Posted

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!

Posted
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?

Posted

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.

Posted

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.

Posted
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.

Posted
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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...