Click to See Complete Forum and Search --> : Simple HTML question {Resolved}
dw85745
Mar 18th, 2003, 05:49 PM
New to HTML.
I downloaded three web pages which were linked on the download site and put them into a directory (d:\test).
The original html has a "xref" within the document which I surmise establishes the link between the pages. In front of xref is the http address.
Is there a way to identify that the default directory (d:\test) is the xref for the other pages
OR
do I need to substitute the http address with (d:\test)
OR
am approaching this wrong.
Thanks
David
Rick Bull
Mar 19th, 2003, 05:08 AM
I'm not really sure what xref is, href is used with <a> tags to link to files, maybe if I could see the page I could tell you. But anyway if you want to link to a file you don't need to use the full http://... stuff, you can just name the file (and directory if needed) as it's relative to the html file. E.g. say you had your index.htm in a directory, and wanted to link to a file named index2.htm in a sub directory "sub_dir" you could just link to it like <a href="sub_dir/index2.htm">...
dw85745
Mar 19th, 2003, 09:47 AM
Hi Rick:
Thanks for responding. Hope all goes well across the pond. BTW haven't made much progress on my cleaning up my code. One of those tough projects which seem to always get put on the back burner.
Our news media indicates there is a lot of protesting re Iraq in England. Is this true, or just like here, a small % of the people?
<A href="http://www.geocities.com/SiliconValley/Way/9731/index.html">
Your right it is href not xref (must have been asleep).
Your explanation is good for a subdirectory situation, but where I copied the three pages into the same directory, I ASSUME all I need is href=index.html
Tried this but so far doesn't seem to want to find the index page.
David
Rick Bull
Mar 20th, 2003, 05:55 AM
Well most of the people are anti the war, and on the march (I was there too :p) there were about 2 million people.
Anyway yes all you should need is index.html, if it's not working I can only think you have a spelling mistake, or the files are in another directory. Don't think I can help much more without seeing the directory structure.
CornedBee
Mar 23rd, 2003, 02:25 AM
Must still be in ""
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.