What is the purpose and uniqueness SHTML?

后端 未结 2 1736
我寻月下人不归
我寻月下人不归 2021-01-30 02:15

Recently I came to know about SHTML when I saw a site with .shtml extensions.

What is the purpose of SHTML, and in what ways does it differ from HTML and DHTML?

相关标签:
2条回答
  • 2021-01-30 02:33

    It’s just HTML with Server Side Includes.

    0 讨论(0)
  • 2021-01-30 02:36

    SHTML is a file extension that lets the web server know the file should be processed as using Server Side Includes (SSI).

    (HTML is...you know what it is, and DHTML is Microsoft's name for Javascript+HTML+CSS or something).

    You can use SSI to include a common header and footer in your pages, so you don't have to repeat code as much. Changing one included file updates all of your pages at once. You just put it in your HTML page as per normal.

    It's embedded in a standard XML comment, and looks like this:

    <!--#include virtual="top.shtml" -->
    

    It's been largely superseded by other mechanisms, such as PHP includes, but some hosting packages still support it and nothing else.

    You can read more in this Wikipedia article.

    0 讨论(0)
提交回复
热议问题