473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

New to HTML

I'm trying to learn HTML and have run across a problem that I can't figure
out. I'm sure it's a no brainier for you learned guru's, but for me it's
stumping. I have a path on my computer as such:

C:\Documents and Settings\Owner\My Documents\Web Pages\Lemon Pie Filling
("Lemon Pie Filling" is a Word Document)

When I try to reference it in my web page like so;

<P><A HREF="C:\Documents and Settings\Owner\My Documents\Web Pages\Lemon
Pie Filling">Lemon pie filling</A></P>

it opens to "The page cannot be displayed". If I remove the \Lemon Pie
Filling it opens to Web Pages. What do I need to do to have it open the
Microsoft Word Document?

Dec 29 '05 #1
2 1493
Dick Worland wrote:
I'm trying to learn HTML and have run across a problem that I can't figure
out. I'm sure it's a no brainier for you learned guru's, but for me it's
stumping.
In future, please get to the point in the first sentence. Preferably in
the Subject line too. Nobody is interested in whether you are new to
HTML, but the topic of your question might interest some people.
I have a path on my computer as such:
The paths on your computer are rather irrelevant to HTML authoring for
the WWW.
When I try to reference it in my web page like so;
You are trying to do the wrong thing anyway, since the file system of
your computer is not part of the WWW, and any resources there are
accessible to you only (and maybe in your home network or other local
network).

Why don't you tell what you are trying to accomplish, instead of
describing some attempt at doing something that cannot possibly
accomplish anything on the WWW?
What do I need to do to have it open the
Microsoft Word Document?


You can link to a Word document on the WWW like any other document on
the WWW. For example,

<p>I have an excellent <a href="lemon-pie-filling.doc">lemon
pie filling recipe</a>.</p>

(Of course, you would need to put the Word document under that name onto
a the same directory where the referring HTML document is. This works
both locally, when the directory is on your computer, and on the WWW,
when it is on a web server.)

But why would you do that? You have HTML, the flexible hypertext format,
at your disposal.
Dec 29 '05 #2
On Thu, 29 Dec 2005 18:01:01 +0100, Dick Worland <rw******@wabash.net>
wrote:
When I try to reference it in my web page like so;

<P><A HREF="C:\Documents and Settings\Owner\My Documents\Web Pages\Lemon
Pie Filling">Lemon pie filling</A></P>

it opens to "The page cannot be displayed". If I remove the \Lemon Pie
Filling it opens to Web Pages. What do I need to do to have it open the
Microsoft Word Document?


You mention it is a Word document. I assume you have set your explorer
_not_ to display the extentions of known file types. For Word the
extention is .doc. If you add .doc to the whole of the address it might
work fine.

Some notes though:
- As long as you are experimenting locally, it is fine to link to files of
very specific type, like from Office programs. As soon as you go publish
on the world wide web (www) you have to remember that many people out
there may not have the same applications you have, and thus they will not
be able to open the specific documents. Especially if you leave them sit
on your hard drive ;-)
- It is a good habit to fill in the spaces in document names with 20%.
Your file name would then be Lemon%20Pie%Filling.doc.
- A path name on the www translates in to a URL. In a URL the slashes are
fo)rward. Furthermore you include the protocol you use. The URL would
therefore be:
file://localhost/C:/Documents20%and20%Settings/Owner/My20%Documents/Web%20Pages/Lemon%20Pie%Filling.doc
- To avoid problems with certain web servers who distinct capitals from
undercast, it is best to keep all names and 'paths' in undercasts (so you
don't have to remember which files had a capital where, and which didn't).
So, finally, your URL would be (when published):
http://www.yourwebsite.com.imvalid/p...ie%Filling.doc

And I do hope you publish because I can't resist lemon pie :-)
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Dec 29 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
1
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML...
33
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
9
by: Patient Guy | last post by:
Taking the BODY element as an example, all of its style attributes ('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01, a fact noted in the DOM Level 2 HTML specification. ...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.