术语:DHTML 是 HTML5 的前身吗?
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当我的意思是“用 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".
不,只是 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.
引用维基百科:(强调我的)
DHTML 中的 D 代表“Dynamic”,意思是 javascript,HTML5 就是HTML 如上面 wiki 文章所述。这意味着 DHTML 并不是 HTML5 的前身。
比较两者的定义:
DHTML:
HTML5:
Quoting Wikipedia: (Emphasis mine)
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:
HTML5: