In a URL,
./ means same directory as the current html page. If we organize our project in its own folder, then that becomes the site root. That’s the
./ that our page(s) refer to. The current working directory.
Our index.html file will be in this directory. It makes sense to organize script into a script folder (js) and style sheets into a styles folder (css). The paths to those files will be,
It follows we will have an images folder, as well. The only file that needs to be on the site root is,
Think site root so that you get your bearings on web server and design all your navigation relative to that. The home page is on the site root and should be the default page if not specified in the URL.
will open up on their home page. That’s how web servers work. Don’t try this on your own machine, it won’t work, but we can still devise our project folders as site roots, each and every one.