SHTML和DHTML - 如果使用它们,为什么不使用它们?

时间:2021-09-14 22:42:17

With HTML 5 up, should we continue using the .dhtml and .shtml file formats?

使用HTML 5,我们应该继续使用.dhtml和.shtml文件格式吗?

Why does Js and CSS work even when we use HTML, without DHTML. Is this practice wrong?

为什么即使我们使用HTML而没有DHTML,Js和CSS也能正常工作。这种做法错了吗?

Is there any advantage of SHTML over PHP?

SHTML优于PHP有什么优势吗?

If these 2 are not deprecated, why aren't they around?

如果这两个不被弃用,为什么他们不在?

1 个解决方案

#1


1  

SHTML

There isn't any difference between using .shtml and .php files other than the languages in which they are parsed. .shtml contains SSI scripting, while .php contains PHP scripts. There isn't any specific reason to choose one over the other - it depends completely upon the developer.

使用除了解析它们的语言之外的.shtml和.php文件没有任何区别。 .shtml包含SSI脚本,而.php包含PHP脚本。没有任何具体的理由选择一个 - 这完全取决于开发人员。

DHTML

DHTML isn't a different language or script from HTML. It just refers to the combined use of a markup language (HTML), a client-side scripting language (JavaScript) and a styling language (CSS). It simply notifies that your HTML page has dynamic content.

DHTML与HTML不是不同的语言或脚本。它只是指标记语言(HTML),客户端脚本语言(JavaScript)和样式语言(CSS)的组合使用。它只是通知您的HTML页面具有动态内容。

None of these are deprecated. It is just that SHTML has gone out of use as many people have switched to PHP and other server-side languages, and that people have minimized the usage of the term DHTML for talking about dynamic HTML pages, as now most of the websites have dynamic content.

这些都不被弃用。只是SHTML已经不再使用,因为许多人已经转向使用PHP和其他服务器端语言,并且人们已经最大限度地减少了使用术语DHTML来讨论动态HTML页面,因为现在大多数网站都有动态内容。

#1


1  

SHTML

There isn't any difference between using .shtml and .php files other than the languages in which they are parsed. .shtml contains SSI scripting, while .php contains PHP scripts. There isn't any specific reason to choose one over the other - it depends completely upon the developer.

使用除了解析它们的语言之外的.shtml和.php文件没有任何区别。 .shtml包含SSI脚本,而.php包含PHP脚本。没有任何具体的理由选择一个 - 这完全取决于开发人员。

DHTML

DHTML isn't a different language or script from HTML. It just refers to the combined use of a markup language (HTML), a client-side scripting language (JavaScript) and a styling language (CSS). It simply notifies that your HTML page has dynamic content.

DHTML与HTML不是不同的语言或脚本。它只是指标记语言(HTML),客户端脚本语言(JavaScript)和样式语言(CSS)的组合使用。它只是通知您的HTML页面具有动态内容。

None of these are deprecated. It is just that SHTML has gone out of use as many people have switched to PHP and other server-side languages, and that people have minimized the usage of the term DHTML for talking about dynamic HTML pages, as now most of the websites have dynamic content.

这些都不被弃用。只是SHTML已经不再使用,因为许多人已经转向使用PHP和其他服务器端语言,并且人们已经最大限度地减少了使用术语DHTML来讨论动态HTML页面,因为现在大多数网站都有动态内容。