htm and html mean the same thing, hypertext markup language. The reason for this difference is that the naming rules in the DOC environment only allowed three suffixes. They are all static pages
shtml It is a dynamic hypertext markup language. They need to be processed by the server because it contains SSI technology.
The difference between SHTML and HTML can be explained in one sentence: SHTML is not HTML, it is a server API. Shtml is HTML dynamically generated by the server. Although both are hypertext formats, SHTML is a file used for SSI technology, that is, SERVER SIDE INCLUDE--SSI server-side inclusion instructions. If the Web Server has SSI function (Most (especially based on Unix platforms) WEB servers such as Netscape Enterprise Server support SSI commands). Special treatment will be given to shtml files. Scan the shtml file first to see if there are no special SSI instructions.
If yes, interpret the SSI command according to the Web Server setting rules. After the explanation, drop the client together with the normal html.
What is the relationship between html or htm and shtml or shtm
HTML or htm is a static page format, which means that the server does not need to parse the scripts in it, or there is no server-side execution in it Script, and shtml or shtm, because it is based on SSI technology, is treated as a dynamic programming language when there is a server-side executable script, just like asp, jsp or php. When shtml or shtm does not contain server-side executable scripts, its function is the same as html or htm.
The above is the detailed content of The difference between htm,html.shtml. For more information, please follow other related articles on the PHP Chinese website!