41 users online (0 members and 41 guests)  

Thread: Index html?


  Results 1 to 12 of 12

Related

  1. html index collapse    Forum: HTML Forum
    Replies: 0
  2. Z-index    Forum: CSS Forum
    Replies: 8
  3. Z-Index not working with IE.    Forum: Myspace Forum
    Replies: 1
  4. uploading "index.html"    Forum: HTML Forum
    Replies: 2
  5. index.html    Forum: General Discussion
    Replies: 2
  1. #1
    Silly-Girl's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Location
    Michigan
    Posts
    13

    Index html?

    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

  2. #2
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440

    Smile

    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.

  3. #3
    Silly-Girl's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Location
    Michigan
    Posts
    13
    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

  4. #4
    Silly-Girl's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Location
    Michigan
    Posts
    13
    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">
    <html>
    <head>
    <title>index</title>
    </head>
    <body>
    <table cellspacing="1" cellpadding="9" width="100%" height="100%" bgcolor="#e7cef4">
    <tr>
    <td>
    <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>
    </td>
    </tr>
    </table>
    </body>
    </html>

  5. #5
    Silly-Girl's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Location
    Michigan
    Posts
    13
    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!

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    yeay

    had to remove "public_html" ...kinda late now, sorry

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  7. #7
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    tip:

    saw some things in your code that could be fixed

    replace:
    Code:
    <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>

    with:
    Code:
    <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>
    moved "center" to the TD, added "/" to the H tags.

    Dave

  8. #8
    Silly-Girl's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Location
    Michigan
    Posts
    13
    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

  9. #9
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    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
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  10. #10
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    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.

  11. #11
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440
    Originally posted by benzden
    Do make the "View Source" ability of your browser a friend.

    Hear, hear! VIEW SOURCE is the best teacher.

  12. #12
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316
    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.



Tags for this Thread