Forum Moderators: open

Message Too Old, No Replies

html VS htm

         

einaryun

7:56 am on Oct 30, 2003 (gmt 0)

10+ Year Member



What's the difference between html and htm?

Sinner_G

8:09 am on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK, there is not really a difference, htm just comes from the time when file extensions could only be 3 letters.

elgumbo

11:06 am on Oct 30, 2003 (gmt 0)

10+ Year Member



.htm is sexier ;)

Imaster

11:12 am on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I personally prefer .html :)

Monus

11:20 am on Oct 30, 2003 (gmt 0)

10+ Year Member



Long... long... long time ago (dos time) some browsers could not display .html files. For to avoid that problem they used the .htm file extension.

Thats all.

einaryun

12:17 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



Thanks all,Our static website files all use .htm extensions.Now I think it's better. :)

marcusbjorke

1:39 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



It also depends on the configuration of your webserver. I remember the first site i put up, the index.html file had to be named with html otherwise you would not get anything if you just typed in the domainname i.e www.mydomain.com/mysite/

Anayway it shouldn't be a problem anymore, since webservers mostly works with both now. If you see what W3C.org uses it is html. I prefer html since i first had a problem with htm.

Imaster

2:07 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I guess it also depends on your preference. FYI, Google and many other sites use .html

[google.com...]

drbrain

4:52 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



.htm exists because FAT16 is a crappy filesystem.

.html or .htm or anything else (.pl, .cgi, .foo) could be rendered as HTML if the server sends it as text/html.

Since the first use of html was on *nix machines that could handle arbitrarily sized filenames, .html was the extension of choice.

TGecho

8:07 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



I prefer .php ;)
When doing static pages, I use .htm just because it's shorter. There aren't really any compelling reasons one way or another.

korkus2000

8:12 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



htm here like said before it is shorter.

sun818

8:24 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Imagine how much bandwidth and diskspace we would save collectively if every file that was .html was replaced with .htm :) Smaller web pages, smaller web logs, faster downloads... ;)

g1smd

8:39 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The .html file extension was the first one, and was used on Unix and other systems. Later, when MS-DOS and Windows 3.11 was used, the FAT 16 filename limitations meant that people uploading webpages were restricted to using the 8.3 notation. However, most people did not realise that once the file had been sent by FTP from the computer to the webserver that it could be renamed from .htm to .html instead. As they didn't know then few people actually did it. The web browser could use any filename irrespective of the actual operating system in use on the computer. However, saving files from the web would mean that longer filenames would be truncated to 8.3 format. Winodws 95, with long-filename support fixed all those problems.

jatar_k

8:42 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I use

.html == php parsed
.htm == static html

RobinC

9:11 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



jatar_k: *really* nice idea, I've set up .html for php too, but never changed .htm from being static - somehow that never occured to me... (goes off to do some playing around with it) ;-)

einaryun

1:03 am on Oct 31, 2003 (gmt 0)

10+ Year Member



.html == php parsed
.htm == static html

Good idea,Can you give some particular description for ".html==php parsed"? thanks!

DrDoc

1:12 am on Oct 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bandwidth and diskspace we would save collectively

So, why not just use .h ;)

jatar_k

2:05 am on Oct 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Can you give some particular description

sure what do you want to know?

I set all of my pages with .html extension to be php. It helps with speed, why turn on the parser for a page if there is no php on the page at all. To be perfectly honest, I don't often use .htm. Very few of my pages don't have php in them.

DrDoc, why use an extension at all? ;)