8 replies [Last post]
n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 2 days ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

Does anyone know if there is any advantage of one file extension over the other.

Also, does anyone know why .htm instead of .html feels dirty to me when I see it?

Thanks.

This is my big chance . . . yep, I blew it . . .

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

.htm or .html?

It doesn't really matter which you use, the three letter extension is a hangover from Dos/Windows 8.3 days, however hackers/coders will snigger at you if you use the three letter variant as it's considered newb like and uneducated and you'll stand out as an amateur, so I often use it just to be perverse Smile it looks dirty because it's stunted and ugly like some strange MS file extension of dubious application such as .htc, something that smacks of virus and malicious coding. whereas .html is nobel, proclaiming it's full heritage and birthright proudly.

Lets sit back and wait for the coders to offer protestation Smile

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Lorraine
Lorraine's picture
Offline
Elder
UK
Last seen: 13 years 22 weeks ago
UK
Timezone: GMT+1
Joined: 2005-01-04
Posts: 1001
Points: 0

.htm or .html?

.htm for me - I often get hangovers Wink

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

.htm or .html?

I'm just stuck in the past, and cannot move past years of using three letter extensions, that and always looking for economy in files, yeah ok I'm just lazy really can't be bothered to find the 'L'

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 2 days ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

.htm or .html?

You never know, we might all have to start over, re-invent DOS and the .htm extension.

This is my big chance . . . yep, I blew it . . .

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 7 years 18 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

.htm or .html?

Does anyone really care?

Both are recognised as files containing html. All I would say is don't mix them, use one and stick with it.

antibland
antibland's picture
Offline
Leader
Pittsburgh
Last seen: 11 years 2 weeks ago
Pittsburgh
Joined: 2005-01-17
Posts: 603
Points: 0

.htm or .html?

Though this is slightly (ever so) off-topic, I want to throw this link out there. Back when I first read it, I never really considered the usefulness of the article. By now it's become a part of every website I build. It will help you worry less about file extensions altogether and improve site aesthetics and expandability. If you've never read it, please do. I would consider this a must-read.

- Antibland

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 2 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

.htm or .html?

Ever so slightly off at a minor tangent Smile

I would hope everyone knows to end with a trailing slash, the url construction is likewise one of those better practises that should be followed and also means that you always have an index file in the directory blocking any attempts at a directory listing.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 2 days ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

.htm or .html?

Antibland,

Thanks for the article. I will start implementing the slash from here on.

This is my big chance . . . yep, I blew it . . .