Home  >  Article  >  Web Front-end  >  The difference between htm,html.shtml

The difference between htm,html.shtml

巴扎黑
巴扎黑Original
2018-05-12 13:50:162798browse

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!

Statement:
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