PDA

View Full Version : can't link to my home page learning "html"


masternige
September 7th, 2007, 03:12 PM
Hi folks i am doing a course on "html" all of the links i have created between my pages work but for some reason my links to my home page do not work.I have shown the code below.

<html>
<head>
<title>
susehelptopics.html
</title>
</head>
<body>
<a href=http://www.novell.com><img src="suselogo.jpg"width="155" height="85 align="left"><font size="6"<b><i> welcome to suse help topics for beginners the nige </i></b></font><img src="suselogo1.jpg"width="155" height="85 align="right"></a>
<p>
<P>
<br>
<br>
<b><font size="6"><font color="green"> MENU </b></font>
<br>
<a href="index.htm">HOME</a>
<br>
<a href="nfstutorial.html">NFS how to</a>
<br>
Set a static ip
<br>
Here my song of the day
<embed src="hark.mp3" autostart="true"></embed>
</body>
</html>



Now my home page is called index.htm and all of my pages are in the same folder.Is there any obvious reason why this wont work.Any help would be appreciated.Cheers Nige.

rockboy
September 7th, 2007, 07:43 PM
The only thing I can see is that the extension might be html instead of htm.

BTW, you have two font tags and only one end tag here...
<b><font size="6"><font color="green"> MENU </b></font>
That can mess up things that follow the font tags. You should also check the nesting order of your b tags.

masternige
September 7th, 2007, 08:18 PM
Hi rockboy,thanks for your reply i was wandering if i click on to my home page the full address is
C:\Documents and Settings\master1\Desktop\tele2-a6\index.htm.html

is it not supposed to end simply
C:\Documents and Settings\master1\Desktop\tele2-a6\index.htm

why does it have 2 extensions ".htm.html"
Thanks Nige.

rockboy
September 7th, 2007, 08:30 PM
You need to rename the index.htm.html file to have only one extension. It should be either index.htm or index.html. The link to that page should match the one you choose.

rockboy
September 7th, 2007, 08:36 PM
If you're using Notepad and add the html extension to a file named index.htm you get index.htm.html. You need to rename it to include only the extension you choose not both.

masternige
September 7th, 2007, 08:58 PM
Yes it would seem the extension is the problem,but i am only naming the file i save in notepad .htm and when i click on it go in to rename it does only have the extension.htm but when i open it in explorer it has added the .html extension giving me ".htm.html" so now i was wandering if there is some setting maybe in ie7 that is causing this to happen.
Regards Nige.
ps thanks for your help as my deadline is midnight tomoz and im sweating. lol

rockboy
September 7th, 2007, 09:31 PM
If you're renaming the file in Notepad make sure you remove the existing file extension when you "save as" with a new extension. If you save index.htm with an .html extension you get index.htm.html. That changes the file extension to .html and it doesn't match your link file name.

If you're renaming the file in Windows Exporer (My Documents) make sure you have it set to show file extensions. If it doesn't you're renaming the file name but not it's extension. If you don't see the actual file extensions as a part of the file name you can change that in Tools/Folder Options. Uncheck "hide file types for known extensions."

masternige
September 7th, 2007, 10:29 PM
Hi rockboy,
Just wanted to say a big thankyou it was down to a hidden file extension like you said.I am up and running now.
Thanks again Nige.

rockboy
September 7th, 2007, 11:15 PM
Good news. :)