.htm vs .html [closed]

2019-01-30 07:23发布

Which extension should I choose for my HTML files and why?

12条回答
你好瞎i
2楼-- · 2019-01-30 07:37

It's the same in terms of functionality and support. (most OS recognize both, most Search Engines recognize both)

For my everyday use, I choose .htm because it's shorter to type by 25%.

查看更多
地球回转人心会变
3楼-- · 2019-01-30 07:38

Neither!

If you're asking; "what would a website visitor rather type, htm or html" - it's much better to give them a nice descriptive URL with no extension. If they get used to going to yoursite/contact.html and you change it to yoursite/contact.php you've broken that link. If you use yoursite/contact/ then there's no problem when you switch technology.

查看更多
甜甜的少女心
4楼-- · 2019-01-30 07:42

I guess it's a little too late now however the only time it does make a difference is when you set up HTML signatures on MS Outlook (even 2010). It's just not able to handle .html extensions, only .htm

查看更多
Bombasti
5楼-- · 2019-01-30 07:42

Since nowadays, computers support widely any length as file type, the choice is now only personal. Back in the early days of Windows where only 3 letters where supported, you had to use .htm, but not anymore.

查看更多
Summer. ? 凉城
6楼-- · 2019-01-30 07:44

Same thing.. makes no difference at all... htm was used in the days where only 3 letter extensions were common.

查看更多
来,给爷笑一个
7楼-- · 2019-01-30 07:46

If you plan on putting the files on a machine supporting only 8.3 naming convention, you should limit the extension to 3 characters.

Otherwise, better choose the more descriptive .html version.

查看更多
登录 后发表回答