IT Community - Software Programming, Web Development and Technical Support

Difference of htm and html

This is a discussion on Difference of htm and html within the Web Design Help forums, part of the Web Development category; Hi, pl anyone can you tell about the difference of htm and html?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Web Design Help

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 07-10-2007, 08:28 AM
thangaraj83 thangaraj83 is offline
D-Web Trainee
 
Join Date: Jul 2007
Posts: 3
thangaraj83 is on a distinguished road
Default Difference of htm and html

Hi, pl anyone can you tell about the difference of htm and html?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-11-2007, 03:14 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 801
vadivelanvaidyanathan is on a distinguished road
Smile Re: Difference of htm and html

Practical Differences
Practically speaking, there is no difference between the two extensions. Both denote that the file contains HTML. This is really a matter of convention and is not an absolute, but most realize that a file whose extension is htm or html contains HTML.

On most, if not all, servers either file will be sent with a MIME type of text/html by default. This can usually be changed by the server's administrator(s), but is, more often then not, left alone.

On most, if not all, browsers, either file will be displayed as intended (i.e. rendered according to the browser's default manner of displaying HTML documents). This last is due more to the MIME type sent by the server then by the file's extension, but that's a matter for another FAQ.

Generally, the use of htm over html, or vice versa, is left to the author's personal preferences.

Technical Differences
Technically speaking there are few to no important differences. An obvious difference is the addition of the letter "L" in the html extension. The technical difference that the additional letter will make to the operating system is better left to a different discussion but in the context of a web author, the additional "L" will make no difference.

The technical difference that the additional letter will make to an http server (a "web server") is minimal. Usually, a server will use a file's extension to figure out what MIME type to send back to the requesting client. Most servers are configured by default to send back the text/html type when the requested file ends in an htm or html extension. This can be changed by the server's administrator(s) in such a way that one of the above extensions returns a different MIME type then the other, however, this is not a very common practice.

It is a common misconception that a file ending in an htm extension had to have been created on a DOS/Windows 3.x platform. This is because those operating environments limit filenames to a 3 letter extension. However, it is very simple to create a file with a 3 letter extension on most other platforms, as well. Even those that allow longer file extensions.

Default Filenames
The one situation in which there may be a difference between the two extensions is that of a server's default filenames. When a URL that does not specify a filename is requested from a server, such as http://www.domain.dom/dirname/, the server returns a file from the requested URL that matches a default filename. Examples of common default filenames include "index.html," "index.htm," "welcome.html," "welcome.htm," "default.html," "default.htm," etc. However, an administrator can make the server's default filename anything he/she so desires.

In the case of a default file, the author's filename must be exactly the same as the server's default filename. In other words, if your server is configured to use "index.html" as the default filename, your file must be named "index.html" and not "index.htm."

Note that servers are often configured with more then one default filename. Check with your server administrator or ISP for details about your specific server.

-V.Vadivelan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-16-2007, 02:39 AM
Sivamurugan Sivamurugan is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 22
Sivamurugan is on a distinguished road
Unhappy Re: Difference of htm and html

Other then the obvious, the letter "L," there's not much of a difference between the two extensions. Most, if not all, web browsers and servers will treat a file with an HTM extension exactly as it would a file with an HTML extension, and vice versa.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-17-2007, 11:25 PM
eric eric is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 17
eric is on a distinguished road
Default Re: Difference of htm and html

Well, the answers rather confused me. I'm not getting anything from above statements.

CAN I ask again????

What is the difference between htm and html
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-21-2007, 02:12 PM
reviewer reviewer is offline
D-Web Programmer
 
Join Date: Sep 2007
Posts: 75
reviewer is on a distinguished road
Default Re: Difference of htm and html

I guess, eric, it might be wise for you to explain how you didn't understand vadivelanvaidyanathan's lengthy explanation. Then we could answer your questions.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML vs XHTML: Nesting, The Difference jesichamika HTML, CSS and Javascript Coding Techniques 1 09-16-2009 09:29 PM
What is difference between XHTML,HTML,DHTML? pradip030384 XML and SOAP 4 01-02-2009 08:56 PM
PHP and HTML Jeyaseelansarc PHP Programming 43 04-09-2008 01:26 AM
What is difference between a PHP and HTML? chocoguy PHP Programming 2 12-26-2007 05:23 AM
HTML or CSS capture Web Design Help 2 03-15-2007 07:21 PM


All times are GMT -7. The time now is 09:15 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0