Welcome to the Treehouse Community
Looking to learn something new?
Ryan Harder1,384 Points
Why only img/logo.gif instead of the full filename?
Why doesn't Nick have to type in the full filename of the logo? I tried it out on mine and it also worked, but I don't understand why. Is it because it's in the same folder as the index.html?
Richmond Lauman28,793 Points
The file path works in this case because the img folder (which contains the logo.gif file) is located in the same folder as the index file (the root folder). As long as the path is relative to the root of the site where the index file resides, it will work.
When you refer to the "full file name" are you referring to a path like "C:\Users\Richmond\Documents\Web Page Project\img/logo.gif"?
If that is what you meant, you should not use that kind of file path for a website.