术语:DHTML 是 HTML5 的前身吗?

发布于 2024-12-06 06:13:04 字数 266 浏览 1 评论 0原文

在 20 世纪 90 年代末,每个人都在谈论“对 DHTML 进行编程”是多么酷。事实上,它是 HTML+CSS+JavaScript 的总称,没有特定的 HTML 版本,也没有其含义的公共标准。

现在是 2011 年,每个人都在谈论 HTML5,它也是 HTML、CSS、JavaScript 以及 WebSockets、Localstorage 等其他一些附加功能的组合。

所以问题是,将 DHTML 称为 HTML5 的前身是否正确,而只是后者成为公共标准?或者我错过了一些要点?

In the end of 1990s everyone talked about how cool it is "to program DHTML". In fact, it was an umbrella term for HTML+CSS+JavaScript, there was no specific version of HTML, nor a public standard of what it means.

Now it's 2011 and everyone talks of HTML5, which is also a combination of HTML, CSS, JavaScript and some more additions like WebSockets, Localstorage etc.

So the question is, would it be correct to call DHTML a predecessor of HTML5, just the latter being a public standard? Or am I missing some point?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

-黛色若梦 2024-12-13 06:13:04

当我的意思是“用 Javascript 操作 DOM”时,我个人仍然会说“DHTML”,主要是为了将其与“Ajax”区分开来,对我来说,“Ajax”涉及到服务器的 XHR。对我来说,“HTML5”意味着利用 HTML 中的新功能,例如画布或本地存储。如果您现在正在构建 Web 应用程序,您很可能会同时使用所有这些技术。

不过,很多人,尤其是营销领域的人,将这些术语用作同义词,并且更喜欢当时的流行语,即 DHTML,然后是 Ajax,现在是 HTML5。他们只是不想说“DHTML”时听起来像 1998 年的人。

I personally still say "DHTML" when I mean "manipulating the DOM with Javascript", mostly to differentiate it from "Ajax" which for me involves making XHR to the server. And "HTML5" for me means making use of the new capabilities in HTML, such as canvas or local storage. If you are building a web app these days, you would most likely be using all of these techniques at the same time.

A lot of people, especially in marketing, use these terms as synonyms, though, and prefer the buzzword of the day, which was DHTML, then Ajax, now HTML5. They just don't want to sound like a person from 1998 by saying "DHTML".

养猫人 2024-12-13 06:13:04

不,只是 HTML 一词或多或少已经发展到包含 DHTML。

就像“移动电话”一词不再与“电话”一词分开一样,因为手机移动不再有什么特别之处。如果您需要指定非移动电话,则可以使用“固定电话”。

同样,HTML 和 DHTML 现在的含义几乎相同,如果您指的是非动态 HTML,则必须指定“纯 HTML”。

No, it's just that the term HTML more or less has grown to include DHTML.

It's like the term "mobile phone" which is no longer separate from the term "phone", because there is nothing special about a phone being mobile any more. Instead you use "land line" if you need to specify a non-mobile phone.

In the same way, HTML and DHTML now means pretty much the same thing, and you have to specify "plain HTML" if you mean non-dynamic HTML.

烟火散人牵绊 2024-12-13 06:13:04

引用维基百科:(强调我的)

继其前身 HTML 4.01 和 XHTML 1.1之后,HTML5
对 HTML 和 XHTML 普遍使用的观察的回应
万维网是各种特征引入的混合体
规范,以及软件产品引入的规范,例如
作为网络浏览器,那些按照惯例建立的浏览器,以及许多
现有网络文档中的语法错误。这也是一种尝试
定义可以用 HTML 或 HTML 编写的单一标记语言
XHTML 语法。它包括详细的处理模型,以鼓励更多
可互操作的实现;它扩展、改进和合理化
可用于文档的标记,并介绍了标记和
适用于复杂 Web 的应用程序编程接口 (API)
应用程序。2

DHTML 中的 D 代表“Dynamic”,意思是 javascript,HTML5 就是HTML 如上面 wiki 文章所述。这意味着 DHTML 并不是 HTML5 的前身。

比较两者的定义:

DHTML:

动态 HTML(或 DHTML)是一个总称,是一组
共同使用的技术来创建交互式和动画网络
通过使用静态标记语言的组合(例如
HTML)、客户端脚本语言(例如 JavaScript)、
表示定义语言(例如CSS)和文档
对象模型。2

HTML5:

HTML5 是一种用于构建和呈现内容的语言
万维网,互联网的核心技术。这是第五个
HTML 标准的修订版(创建于 1990 年,标准化为
自 1997 年起的 HTML41) 以及截至 2011 年 9 月的 HTML4 仍在使用中
发展。其核心目标是通过以下方式改进语言:
支持最新的多媒体,同时保持其易于阅读
人类并始终被计算机和设备理解(网络
浏览器、解析器等)。 HTML5 的目的不仅是包含 HTML4,
但也包括 XHTML1 和 DOM2HTML(特别是 JavaScript)。1

Quoting Wikipedia: (Emphasis mine)

Following its immediate predecessors HTML 4.01 and XHTML 1.1, HTML5 is
a response to the observation that the HTML and XHTML in common use on
the World Wide Web is a mixture of features introduced by various
specifications, along with those introduced by software products such
as web browsers, those established by common practice, and the many
syntax errors in existing web documents. It is also an attempt to
define a single markup language that can be written in either HTML or
XHTML syntax. It includes detailed processing models to encourage more
interoperable implementations; it extends, improves and rationalises
the markup available for documents, and introduces markup and
application programming interfaces (API)s for complex web
applications.2

The D in DHTML stands for "Dynamic" which means javascript, HTML5 is simply predecessor of HTML as described by above wiki article. This means DHTML isn't predecessor of HTML5.

Compare the definitions of the two:

DHTML:

Dynamic HTML, or DHTML, is an umbrella term for a collection of
technologies used together to create interactive and animated web
sites1 by using a combination of a static markup language (such as
HTML), a client-side scripting language (such as JavaScript), a
presentation definition language (such as CSS), and the Document
Object Model.2

HTML5:

HTML5 is a language for structuring and presenting content for the
World Wide Web, a core technology of the Internet. It is the fifth
revision of the HTML standard (created in 1990 and standardized as
HTML4 as of 19971) and as of September 2011 is still under
development. Its core aims have been to improve the language with
support for the latest multimedia while keeping it easily readable by
humans and consistently understood by computers and devices (web
browsers, parsers, etc.). HTML5 is intended to subsume not only HTML4,
but XHTML1 and DOM2HTML (particularly JavaScript) as well.1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文