About the Blog

  • The AC Multimedia blog is a web design and development blog containing articles and tutorials about the web and the stomping ground for Andy Crathorne, owner of AC Multimedia and web developer.

Recent Articles

Archive

Blogroll

RSS Blog Feed

  • Subscribe to our feed to receive the latest articles straight to your RSS news reader.

    RSS Blog Feed  RSS Blog Feed

Web Design Blogs - Blog Top Sites

RSS Comments Feed

  • Subscribe to the comments feed for ".htm vs. .html" to receive the latest comments straight to your RSS news reader.

    RSS Blog Feed  RSS Comments Feed

Blog Home  |  Comments (4)

.htm vs. .html

SATURDAY, AUGUST 2, 2008

I'm often asked which is better: .htm or .html. This (extremely!) short article discusses the differences between the two file types and which is the correct one to use.

So what's the difference and which is best?

The short answer

There is none. They are exactly the same.

The long answer

Both .htm and .html are exactly the same and will work in the same way. The choice is down to personal preference, providing you're consistent with your file naming you won't have a problem with either.

Depending on the configuration of the web server, one of the file types will take precedence over the other. This should not be an issue since it's unlikely that you'll have both index.htm and index.html sitting in the same folder.

We always use the shorter .htm for our file names since file extensions are typically 3 characters long.

Posted Aug 2, 2008 11:56 AM by Andy Crathorne | Permalink | Send to a Friend

Bookmark with:
Delicious Digg reddit Facebook StumbleUpon

Comments (4)

hull web design wrote:
Exactly my sentiments.
Posted on 08-Aug-08 at 11:41 am | Permalink

Soula Digital Design wrote:
I have to say we personally prefer html because of people typing stuff in, I know it will only be a very, very small amount of people but it's better than them seeing an error page.

I do agree that keeping extensions to 3 characters is a good diea though.
Posted on 18-Aug-08 at 8:34 am | Permalink

webdesign wrote:
i have to agree on that.
Posted on 10-Sep-08 at 1:54 pm | Permalink

Isabelle Newton wrote:
I agree - not a lot of difference at all apart from the default filenames scenario.
Posted on 10-Nov-08 at 1:10 pm | Permalink

Have something to say?

Have some interesting comments or thoughts on this blog? Perhaps you have some questions? Maybe you want to share your knowledge? Either way, write it below.













Security Image





Please note that all comments and URLs are subject to approval and may be amended to suit editorial style and subject matter. Website addresses will only be published after approval.