Differences between htm, html, and shtml, and htmhtmlshtml

Source: Internet
Author: User

Differences between htm, html, and shtml, and htmhtmlshtml

Htm, html, and shtml are static Web page suffixes. They all have different extensions, and others are static Web pages.

Htm and html are completely static webpages that are directly sent to the browser without being compiled and interpreted by the server, except for htm and html pseudo static requests.

Html, htm, shtml, and shtm are all static html webpages. All are html webpage extensions with different webpage file extensions.

  I. html AND htm

Both. html and. htm are static webpage extensions. There is no difference or distinction between webpage files. The suffixes of html AND htm can be exchanged, and there is no difference between them. We can think that there is no essential difference between html and htm. The only difference is that there is more than one "l ".

  Ii. shtml and shtm

    

Some commands of ssi are used in the webpage file named by shtml, just like commands in asp. You can write ssi commands in the shtml file. When the client accesses these shtml files, the server reads and interprets the SHTML files and explains the SSI commands contained in The SHTML files.

There is no difference between the shtml and the shtm Suffix in Webpage files, and the suffix names can be exchanged. The difference is that there are as many as html AND htm and less "l ".

  Iii. Differences between html and shtml

    In essence, html is a type of static Web page. html is pure static, and the content displayed to the viewer when the browser reads html files. The shtml can use SSI.

  Iv. SSI functions of shtml

    SSI is a set of commands provided for WEB servers. These commands can be directly embedded in the comments of HTML documents. For example:

<! -- # Include file = "info.htm" -->
It is an SSI command, which serves to bring the content of "info.htm" to the front page. When a visitor visits the page, his htmldocument displays the content of info.htm.

Assume that page A is A static page of shtml, and page A uses include to include embedded static html page B. If your server space supports Shtml SSI, when the browser opens page A, the original content of page A and the content of page B will be displayed on page A. we can view the source code of the page without any trace of page B, the page B is displayed completely in page.

Suppose:
1. The content on the shtml page is:
My included page B: <! -- # Include file = "B .html" -->

2. B html webpage content:
I am B page content

3. Check the HTML source code of page A in the browser at this time:
The content on the shtml page is: I am B page content

    The usage of other SSI commands is similar to the previous example. It can be seen that SSI only inserts a little code, and the usage is very simple.
Of course, if the WEB server does not support SSI, it simply uses it as a comment and directly skips the content. The browser also ignores the contained information, we can see the include introduced annotation information in the source code.

    

Related Article

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: info-contact@alibabacloud.com 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.