Forum Moderators: open

Message Too Old, No Replies

Using of "/" Instead of "index.html" or the full filename?

         

hiddenboston

4:01 pm on Sep 8, 2006 (gmt 0)

10+ Year Member



I know it's not good practice to use "index.html" when linking to a home page (it "splits the vote" between the URL [http://www.whatever.com] and index.html), but I was wondering if there are any pros and cons to using "/" as opposed to the entire file name when linking to the home page.

Any thoughts on this? Thanks!

encyclo

4:08 pm on Sep 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I always use
<a href="/">Home</a>
- linking directly from the document root, as you suggest. It is better than a relative link and more portable than an absolute link with the domian name.