本文介绍了什么是SHTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始了解SHTML。并且我也查看了扩展名为.shtml的网站。



SHTML与HTML和DHTML有什么不同之处在于什么目的?

解决方案

SHTML是一个文件扩展名,它允许Web服务器知道应该使用服务器端包含(SSI)处理文件。 b

(HTML是......你知道它是什么,DHTML是微软的Javascript + HTML + CSS或其他名称)。

您可以使用SSI(例如)在页面中包含一个通用页眉和页脚,因此您不必重复执行代码,并且可以将包含的文件更改为一次更新所有页面。您只需按照正常方式将其放入HTML页面即可。

它嵌入在一个标准的XML注释中,如下所示:

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

很大程度上被其他机制所取代,例如PHP包含,但一些托管软件包仍然支持它,没有别的。



您可以在本文中阅读更多


Recently I came to know about SHTML. And also I have look at site having extensions as .shtml.

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

解决方案

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 (for example) include a common header and footer in your pages, so you don't have to repeat code as much, and 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 article.

这篇关于什么是SHTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 19:38