files in same dir

  I created a website, and I linked to other documents in the same directory.
The other documents are'nt coded in html, they are just text doc's. I had thought that each file had to be saved as htm or html, and needed html tags.

I guess this is not so, am I correct?
I am able to click these links to text documents and my browser displays them fine.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yup you're right.
Depending on your browser and/or server, they can either interpret the filename (.txt, .gif, .jpg, etc) or sometimes the content and decide whether they can display it themselves, or whether you'll be asked if you want to save it to your disk.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The documents also do not need to be in the same directory.  Other files are treated the same as HTML documents, only the "display" mechanism may be different.

you can link to _any_ sort of document.  A line in the HTTP response header indicates to the browser what sort of file it is - and the browser then decides what to do with it according to it's configuration.  most browsers these days can display internally most plain text formats, most images, etc - any unrecognised file type will cause the user to be asked whether they want to save it or open it with an associated application
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

rdfAuthor Commented:
Then the only page that needs html tags is the index? If you are able to link to non-html formatted pages, why code the other pages as html? Is it because that the first page the browser loads might not be the start page(index)?

The only problem you mgiht run into is settings on the client machine.  Depending on how it is set up, the txt files may show in the browser, NotePad or other text editor, or prompt you for a download.  Depends on the browser and how the associations are set on the client.
rdfAuthor Commented:
thanks bigbed, thanks everyone

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.