bender said:
A newbie question,
Is there any difference between .htm and .html ? I mean, does the webserver
or browser treat the two file formats any differently ? Is one of them
preferred over the other ?
Well, the browser will treat the file format (when served over
the 'Net) as text/html if that's what the server says it is,
regardless of the filename extension. The file extension should
only matter when it's being read from disk (and thus doesn't come
with a Content-Type header). In this case, the browsers I've used
are usually smart enough to change/tack-on the extension to
'html' (or something) so that it will be able to understand that
it's an HTML document when it reads it back again some other
time.
Between the two, I prefer .html, since .htm only ever really
existed for systems which limit extensions to 3 characters.
-Micah