HTM, HTML, shtml Web page differences

Source: Internet
Author: User

HTM, HTML, shtml Web page differences

First of all, the HTM, HTML, shtml are the suffixes of static web pages, the three can be said to be just the extension is different, the other, are static pages.
HTM and HTML are static pages that are completely static and are not interpreted by the server to be read directly to the browser, except for the HTM and HTML pseudo-static request.
HTML, htm, shtml, shtm are static HTML pages. are HTML Web page extensions that have different suffix names for the page file.

First, HTML and HTM
. html and. htm are static page suffix names, Web page files are not distinguished and differentiated, HTML and HTM suffix page suffixes can be interchanged, there is no difference between the Web page. There is no essential difference between HTML and HTM, and the only difference is that it is more and less an "L".

Second, shtml and shtm

sHTML named Web files, using some of SSI's instructions, like the instructions in ASP, you can write SSI instructions in the shtml file, when the client accesses these shtml files, the server will read and interpret these shtml files, Interpret the SSI instructions contained in the sHTML file.
The shtml and the shtm suffix of the Web page file is not different, the suffix can be interchangeable, the difference is as much as the HTML and the HTM with less "L".

Three, the difference between HTML and shtml
Essentially a static web page, HTML is purely static, the client browser reads what the HTML file is to present to the viewer what content. sHTML, however, can use SSI.

Four, shtml SSI function

SSI is a set of commands for a Web server that is embedded directly in the comments of the HTML document. Such as:
<!--#include file= "info.htm"-
is an SSI directive that copies the contents of the "info.htm" to the current page, and when visitors come to the browser, they see the contents of the info.htm in the same way as other HTML documents.

If our a page is shtml static page, and a page we use include contains embedded B static HTML page, if your server space support shtml SSI this time, when the browser opens a page, it will display a on the page a original content and B page content, We look at the source code of the page, do not find the B page to introduce traces, but rather see the B page content is completely in the a page.

1, a shtml page content is:
I include page b:<!--#include file= "b.html"-

2, B HTML Web content:
I am the B page content

3, this time the browser to view the A-page HTML source code:
A shtml page content is: I am the b page content

This is where shtml SSI contains the charm of include.

The other SSI instructions are basically the same as the example just now, it can be seen that SSI uses just inserting a little bit of code, the use of the form is very simple.

Of course, if the Web server does not support SSI, it simply treats it as a comment and skips through it, and the browser ignores the included information, and we can view the source code to see that the include introduces the annotation information.

How do I configure SSI functionality on my web server?

On some WEB servers (such as IIS 4.0/sambar 4.2), files containing #include directives must use extensions that have been mapped to the SSI interpreter; otherwise, the WEB server will not process the SSI directive; By default, the extension. stm,. shtm, and. The shtml is mapped to the Interpreter (Ssinc.dll).

Detailed IIS configuration shtml with PHP Apache configuration SSI shtml, you can search the Web for relevant tutorial documentation.
sHTML and shtm are static Web pages that are dynamically generated by the server and require the server to take out static Web pages with SSI.
Definition: html,htm is a complete hypertext static page--hypertext Markup Language
sHTML is a file--server Side Include--ssi for SSI technology.
What is the format of shtml and what is the advantage over HTML? shtml,html format is almost the same, shtml can use include (including HTML), through the server generated static pages.
sHTML pages can be embedded in additional HTML pages using include, which allows a site to be shared in the same way, using include to embed in static pages. Static pages are not!

sHTML How to use
<!--#include file= "Web file Address"-

If a Web site head and navigation, the bottom of the various pages are exactly the same, you can separate the sections are placed in an HTML page, and then use the include embedded in a shtml page. Specifically, HTML and HTM cannot use include, even if it is not used. To enable the server to parse the sHTML Web page, you must open SSI in server IIS. Windows 2003 resolves the. shtml file cannot be accessed shtml under 2003 is not supported by default, to support the following can be modified as follows:
1: In the Host management-administration-custom MIME type, add the extension. shtml MIME type is text/html general it is possible if the nested syntax does not work, you need to change the second step
2: Add a mapping in the configuration of the server: C:/windows/system32/inetsrv/ssinc.dll extension. shtml Action Limited to Get,post 2003 in the Web service extension in IIS Manager The include file on the server side is modified to allow the last best reboot under the server.

HTM, HTML, shtml Web page differences

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.