Forum Moderators: phranque
As far as using htm or html. I wouldn't mix them, even as my site still has a few old htm's around. I just 301'ed the last of them. Call me crazy but I would like to develop a root level site and will probably use the htm extension to identify the documents on that site. It would be related to, but unique from the www content.
. They could have PHP parsing enabled on .html files but not .htm.
. The site could have been built over time by different developers.
. They could have just upgraded their design software. Doesn't Dreamweaver produce .html files by default now? It used to be .htm.
All of these reasons do suggest a lack of care and attention though.
I assume you already know that .shtml and .shtm files are set aside for server-side includes by Apache, so there are valid reasons for using at least one of these extensions.
Also, I have to agree with the person who mentioned content negotiation. It seems that few folks realize that the W3C recommends that your URIs have no file extensions in them ever. Reasons for this
- URI doesn't change when technology changes. When all your pages are upgraded to VRML (Virtual Reality Markup Language) or XHTML 3 [cs.tut.fi], you don't have to change you links.
- easier for human readers
- tiny, tiny security boost (you hide the underlying technology and possibly file structure from the casual hacker).
Tom