Thread: Index html?
Results 1 to 12 of 12
05-09-2003, 11:54 AM #1
This is my first website, and goodness for me that I am already confused?? I can do coding, but what the heck is an Index html? Is it my first page on the site where I link everything? I know this will sound silly hence the name.. but if I want to include graphics do I store them in a seperate document and link from there? Thanks for helping this very new newbie!! Silly-girl
05-09-2003, 02:01 PM #2
The way I understand it, "index.html" is the default file that is retrieved when you ask you browser to go to a website.
When you type "http://www,anysite,com" in your address bar, your browser is requesting a document called index.html by default. If you name the very first page you want people to see "index.html", then when people want to go to "www.yoursite.com", that page is the first one they see by default (as if they had typed in the absolute url, which in this example would be "http://www,yoursite,com/index,html").
It doesn't have to be "index.html", but if it isn't, you would have to publish the entire URL as your website which is messy and confusing for some people.
I think I've got that right, anybody feel free to correct me. In fact, I would look forward to hearing the explanation in laymans terms
Last edited by Android; 05-09-2003 at 02:04 PM.
05-10-2003, 07:48 AM #3
Thank you Android!, But I am still confused as to how to present images on my site... say that I want a solid color background but want an image in the center, where do I retrieve that image from? Do I have to upload it to the public_html? Where do I find the address in order to have it show on my site? I tried looking for properties in the ftp thing, but it doesnt show that..... More confusion.......but... (read signature line) Silly- girl
05-10-2003, 08:31 AM #4
Ok, I am trying to learn, so I went ahead and uploaded a picture to the public_html file, and am trying to get the picture to show, here is what I have so far, is this the correct address? All I can see in the preview box is a red X. Silly-girl
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<table cellspacing="1" cellpadding="9" width="100%" height="100%" bgcolor="#e7cef4">
<center><img src="http://galileo.spaceports.com/~ollie/ public_html/beach3.jpg" height="250" width="250"></center><h1> Welcome to Ollie's place!!<h1><h3> Sit down on the dock and let the waves tickle your toes.<h3>
05-10-2003, 09:32 AM #5
WOOOOOHOOOOOO!!! I did it!! All by myself!! I went looking in other forums and found that the addy WAS wrong, I had made it much harder than it needed to be!! Not so Silly_girl!
05-10-2003, 03:37 PM #6
05-10-2003, 03:42 PM #7
saw some things in your code that could be fixed
<td> <center><img src="http://galileo.spaceports.com/~ollie/beach3.jpg" height="250" width="250"></center><h1> Welcome to Ollie's place!!<h1><h3> Sit down on the dock and let the waves tickle your toes.<h3> </td>
<td align="center"> <img src="http://galileo.spaceports.com/~ollie/beach3.jpg" height="250" width="250"><h1> Welcome to Ollie's place!!</h1><h3> Sit down on the dock and let the waves tickle your toes.</h3> </td>
05-10-2003, 04:18 PM #8
Thanks Dave! I fixed the td align tag, but you know, for the address all I had to put was beach3.jpg and it works.. altho when I try with another page it does not work so well, but I will keep surfing thru this great forum and learn and if I am really stuck I will ask. Thanks again, Silly-girl
05-10-2003, 07:15 PM #9
What I wrote is an absolute link, what you did is a relative link, either is fine. To find out more check out the thread http://www.ahfb2000.com/webmaster_he...?threadid=1687
05-10-2003, 10:56 PM #10
Welcome to the forums. TIPS:
Use all lower case for both your folder and file names uploaded to your web host server and within the HTML encoded files.
Do not use spaces in any file or folder names.
Use hyphens instead of underscore characters in folder and or file names. (This is not strict but will confuse people when they see it in a 'normally' underlined URL/link and think it is a space!)
HTML is one of the most intuitive languages I've ever learned - most of it can be figured out merely by looking at the source code for a site someone else has created. Do make the "View Source" ability of your browser a friend.
Good luck and have fun - I have for the past half-dozen years.
05-12-2003, 12:55 PM #11Originally posted by benzden
Do make the "View Source" ability of your browser a friend.
05-12-2003, 11:54 PM #12
the index.html is USUALLY the default file when a url is typed in, but it depends on the settings of IIS. if u have just installed IIS, or not changed it, then by default it is index.html or index.asp. it can be changed to whatever file u want, it can also have one or more files, IIS will follow the priority u set. as far as i know, the file has to be in the virtual directory though.