web design basics: tools, tips, & tricks
 
 

HTML › saving files

Before we go any further with HTML, it seems necessary to talk about saving these HTML files.

HTML files should be saved with either a .htm or .html extension. It doesn’t really matter which one you choose. It makes sense to name your file something that makes sense (HA HA!). Choose a name that will identify the file’s contents rather than some indiscernable jumble of letters and numbers. This page’s name is “saving.htm” because it’s about saving files.

While most programs allow you to save file with names that include spaces (“my wonderful website.htm”), it’s a good idea NOT to do that. Save your file as “my_wonderful_website.htm” instead.

It’s helpful to save your “home page” file as “index.htm.” Most servers open this index file whenever no other page is specifically requested. If the home page to your site is located at <http://www.mysite.com/index.htm> the browser will automatically redirect to your site if a user types in <http://www.mysite.com/>.

It also seems intuitive that all the files that make up a specific website should be saved in one directory. Within that directory (or folder), it also makes sense to store all the images to be used on your site in a subfolder called /images/ or /graphics/. Being organized in this fashion makes finding HTML or image files much easier.

My organization for this site looks like this:

directory structure

You will notice that the cascading style sheet file (5472.css) is stored in this main directory. You also will notice that I have an “index.htm” file; this is my “home page” file. The /images/ folder contains only the images used in this website.

trick

If all your pages carry the same structure, create a template, make the appropriate changes for a specific page, and “save as.” Don’t reinvent the wheel!

 

 

the starting point

content

navigation

» HTML

   › saving files

   › basics

   › links

   › tables

CSS

color

images

 

project

home «

 

The views and opinions expressed in this page are strictly those of the page author.
The contents of this page have not been reviewed or approved by the University of Minnesota.