html or htm?

They have: 68 posts

Joined: Dec 2005

Hi

Does it make any difference if you name an HTML page .htm or .html.I notice my server finds index.html before index.htm. Is it good practice to use one before the other? I think dreamweaver automatically uses .htm.

Cheers

aka Rohan's picture

He has: 200 posts

Joined: Feb 2006

Ultimately no it doesn't, and for the most part is merely a matter of convention. It's mostly down to preference.

.htm was introduced Microsoft to follow the standard 3 character extension sets (.wmv, .mp3, .bmp e.t.c.) although .html was around before that. I would say however that 9 out of 10 people would use .html and I would agree... for a start .htm makes me think of Frontpage Sticking out tongue

Certainly if your server is configured to read .html first then I would use .html although I always do anyway.

This blog brings up the same topic and the comments cover a good range of views. Smiling

He has: 11 posts

Joined: Feb 2007

.html all the way!!! No, I don't have facts to back it up - I just hat frontpage haha Smiling

They have: 68 posts

Joined: Dec 2005

Cheers for that!

They have: 26 posts

Joined: Mar 2007

ChrisL;216131 wrote: Hi

Does it make any difference if you name an HTML page .htm or .html.I notice my server finds index.html before index.htm. Is it good practice to use one before the other? I think dreamweaver automatically uses .htm.

Cheers

don't think it matters at all. You are probably asking for SEO purposes right?
well search engines index both the same as far as I know.

PHP I think gets indexed equally too.

The only issues I know that might cause an issue are dynamically generated pages from databases that use urls to populate information on the webpage.

I could be wrong though.

Free HTML, Dreamweaver, & FrontPage Video Tutorials
http://www.Resource-Website.com
FREE WEBSITE TRAFFIC from YouTube
http://www.TubeTraffic.com

They have: 15 posts

Joined: Apr 2007

jesse1;217257 wrote: don't think it matters at all. You are probably asking for SEO purposes right?
well search engines index both the same as far as I know.

PHP I think gets indexed equally too.

The only issues I know that might cause an issue are dynamically generated pages from databases that use urls to populate information on the webpage.

I could be wrong though.

Here's a little something I put in my .htaccess files...

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .xml .js

What it does is allow me to write all my PHP in HTML files (oh and I can use PHP in XML and Javascript too) - I suspect that search engines *might* treat a PHP page differently to HTML - so I ALWAYS use HTML.

They have: 16 posts

Joined: Jan 2004

I always do one or the other but consistent to insure less confusion

They have: 43 posts

Joined: Mar 2007

As everyone has commented it doesn't matter. I think most people think of .html so if you tell someone go to mydomain.com/Get-Offers.htm they might inadvertently go to mydomain.com/Get-Offers.html because of common practice.

The Best User Driven Poker Site, where you can find Poker Games in your area and get the latest Poker Strategy.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.