Home > Web Front-end > Front-end Q&A > What is the difference between htm and html

What is the difference between htm and html

青灯夜游
Release: 2023-01-03 09:31:45
Original
12868 people have browsed it

Both html and htm are static web page suffixes. There is no difference or distinction between web page files. The web page suffixes of html and htm are interchangeable and have no impact on the web page at all and will not cause errors. It can be considered that there is no essential difference between html and htm. The only difference is that html has an extra "L".

What is the difference between htm and html

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

The difference between htm and html

The former is Hypertext Markup

The latter is Hypertext Markup Language

It can be said that htm = html

At the same time, these two are extensions of static web page files. The extensions can be replaced with each other without causing errors (this refers to opening, but For a link, if it points to an htm file, and that htm file is changed to an html file, then the link cannot be found)

[Recommended tutorial: "html video Tutorial》]

So why are there two file formats?

htm is derived from the old 8.3 file format. The DOS operating system can only support suffix names with a length of three digits, so it is htm. However, it does not matter between HTM and HTML under Windows. html is the long The format of the file name is named. Therefore, htm exists to be compatible with the past DOS naming format, and there is no difference in effect. Previously htm and html were used as hypertext files on different servers, but now they are common.

What is the 8.3 file format? This is a short file name file format in the old 16-bit Win95 or Win98 file system. The extension is limited to 3 characters and the file name is limited to 8 characters. If you want to interact with a 16-bit system, for example, if you want to pass a path to a 16-bit program, you cannot use the long file name and must convert it. For example, convert "C: /MyLongestPath/MyLongerPath/MyFilename.txt" into "C: /Mylong~1/MyLong~2/Myfile~1.txt"

What is the use of knowing this? Only the 8.3 file format is supported in DOS under the FAT disk format. If you want to make applications in this environment, you should pay attention to this file format issue. Under NTFS, this file format is compatible by default and long file names are also supported. You can also cancel support for the 8.3 file format by adjusting the registry.

For more programming related knowledge, please visit: Programming Video! !

The above is the detailed content of What is the difference between htm and html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template