html or htm?

liunx

Guest
I know that the main page or index page of a website should end with .html but what about all the other pages on a website? Should they end in .htm? If so, what is the reasoning for this?<br />
<br />
<br />
Thanks,<br />
<br />
<br />
Cyberbob<!--content-->This has been discussed before, try these threads:<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=18260&highlight=htm+vs+html">http://www.htmlforums.com/showthread.ph ... tm+vs+html</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=14597&highlight=htm+vs+html">http://www.htmlforums.com/showthread.ph ... tm+vs+html</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=9140&highlight=htm+vs+html">http://www.htmlforums.com/showthread.ph ... tm+vs+html</a><!-- m --><!--content-->.html is obviously a page containing HTML code.<br />
<br />
.htm is a throwback to the bad old days, when file extensions were limited to only 3 characters. There is no reason to use it anymore, except on old sites where it would be a hassle to update the links.<br />
<br />
For some reason, Microsoft still defaults to .htm when saving files as web pages - so be careful here.<!--content-->darn Goldi - you bet me to the punch there :D<!--content-->Sorry! ;)<!--content-->Originally posted by cyberbob <br />
I know that the main page or index page of a website should end with .html but what about all the other pages on a website? Should they end in .htm? If so, what is the reasoning for this?<br />
<br />
<br />
Thanks,<br />
<br />
<br />
Cyberbob <br />
<br />
it really does not matter, htm and html are the same thing, do it however you want to.<!--content-->Thanks! I have all my pages ending with .html now so that's good news as I don't have to change anything. :)<br />
<br />
:rocker:<!--content-->>> that's good news as I don't have to change anything <<<br />
<br />
... until you start coding in PHP or some other server-side language.<!--content-->I would use .html.<br />
<br />
For some reason, Microsoft still defaults to .htm when saving files as web pages - so be careful here. <br />
<br />
Well, that is if you use a WYSIWYG editor, as I haven't had any problems with extensions when using good old NotePad.<!--content-->Even if you are limited to three-letter filename extensions in your computer operating system, you can still alter the name of the file on the server to have four letters after you have used FTP to upload it there. Most FTP programs have a "rename that file" feature in them. <br />
<br />
Just make sure, in advance, that you have used the correct filenames in all of the links.<!--content-->
 
Back
Top