Decryption | difference
Each Web page or Web page has its own fixed suffix name, and different suffix names correspond to different file formats and different rules, protocols, usages, The most common Web page suffix names are. html and. htm, but this is just the two most basic file formats for Web pages, and today we'll introduce some other file formats for Web pages.
First, let's introduce HTML and HTM
About Html,html (hypertextmark-uplanguage), the Hypertext Markup Language, is the description language of www. The purpose of designing an HTML language is to be able to easily link text or graphics stored in one computer to text or graphics on another computer, to form an organic whole, without having to consider whether the specific information is on the current computer or on other computers on the network. We simply use the mouse to click an icon in a document, and the Internet immediately goes to the content associated with this icon, which may be stored on another computer on the network. HTML text is a descriptive text consisting of HTML commands that can describe text, graphics, animations, sounds, tables, links, and so on. The structure of HTML consists of a head, a body, two parts of the head, which describes the information required by the browser, and the body contains the specific content to be described.
About HTM, in fact, the HTM and HTML are not essential differences, only to meet the DOS only recognize 8+3 file name, because some old system (Win32) does not recognize the four-bit file name, so some Web server requirements index.html Last L can not be omitted. MSIE can automatically identify and open these files, but the page address must be written exactly, that is to say, index.htm and index.html are two different files, corresponding to different addresses. It is worth mentioning that the UNIX system is sensitive to the case, does not match the words may report no files or can not find the file.
Second, introduce sHTML and shtm.
About Shtml,shtml is an SSI based file, that is, the server Side Include--ssi servers-side contains instructions, some Web server will be specially hosted on shtml files if they have SSI capabilities. The server will first sweep the shtml file to see that there are no special SSI directives, and if so, to interpret the SSI instructions according to the Web server settings rules, then the client is transferred with the general HTML.
There is little to say about Shtm,shtm's relationship with shtml and the relationship between HTM and HTML is roughly similar.
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 script, or that there is no server-side script, and that shtml or shtm is treated as a dynamic programming language when there is a server-side executable script, as it is based on SSI technology, such as ASP , JSP, or PHP. The function is the same as HTML or HTM when shtml or shtm does not contain server-side executable scripts.