没有吗?标签已经存在一段时间了?

发布于 2024-11-06 19:51:42 字数 409 浏览 0 评论 0原文

根据 W3SchoolsPluralsight 的 HTML5 课程中, 标签是 HTML5 的“新”标签。但我从那时起……就一直在使用它,并且它可以在我测试过的任何浏览器中运行。例如,页面使用标签,它适用于所有浏览器。

为什么?这只是一个由热心的浏览器制造商提前实施的草案吗?

According to W3Schools and Pluralsight's HTML5 course, the <embed> tag is "new" to HTML5. But I've been using it since...forever, and it works in any browser i've tested it against. This page for example, uses the <embed> tag and it works in all browsers.

Why? Was it just a draft that got implemented ahead of time by eager browser makers?

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

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

发布评论

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

评论(4

尐偏执 2024-11-13 19:51:42

Mozilla 文档确实同意 W3Schools (一次),但你是对的。 已使用多年,但已针对 HTML5 进行了适当标准化。

HTML 4 正式使用 <对象>。与声明 在 HTML 4 中已弃用的多个来源相反,我在 HTML 3 DTD< /a> (或在 3.2 中),这意味着它可能从未正式标准化。 HTML 2 似乎发展得更慢(正如人们所期望的那样) )。有大量关于 的文档,但我在官方任何地方都找不到关于 的任何提及。

The Mozilla docs do agree with W3Schools (for once), but you are right. <embed> has been in use for ages but was standardized properly for HTML5.

HTML 4 officially used <object>. Contrary to several sources which state <embed> was deprecated in HTML 4, I can't find any mention of it in the HTML 3 DTD (or in 3.2), which means it was probably never standardized officially. HTML 2 seems to be even less evolved (as one might expect). There is plenty of documentation about <applet>, but I can't find a single mention about <embed> anywhere official.

仙女 2024-11-13 19:51:42

经过一些研究和你们的帮助后,我发现 标签最初是由 Netscape 引入的,作为显示图像和类似内容的一种方式。显然它从未正式实现为标准(我检查了 HTML 3 和 W3C 上的两个 XHTML 标准)。当然,尽管 Internet Explorer 实现它是为了对抗 Netscape,但它就是从那里开始的。

http://1997.webhistory.org/www.lists/www -talk.1995q3/0578.html

http://w3.org/

After a little research and help from you guys, I found that the <embed> tag was originally introduced by Netscape as a means to display images and similar content. Apparently it was never officially implemented into a standard (I checked the HTML 3 and both XHTML standards on W3C). Naturally though Internet Explorer implemented it in order to combat Netscape, and it went from there.

http://1997.webhistory.org/www.lists/www-talk.1995q3/0578.html

http://w3.org/

水染的天色ゝ 2024-11-13 19:51:42

embed 不是 W3C 标准的一部分,但对于支持它的浏览器来说足够有用。 HTML5 采用务实的态度来对待现状,所以它就在这里。

embed wasn't part of W3C standards but was useful enough for browsers to support it. HTML5 takes a pragmatic approach to what is, so it's here.

清欢 2024-11-13 19:51:42

标签 实际上已经存在了一段时间,但在 HTML4 和 XHTML1 中已被弃用。它在 HTML5 中重新引入。

** 已更正。 :)

The <embed> tag has in fact been around for a while, but it was deprecated in HTML4 and XHTML1. It was re-introduced in HTML5.

** Corrected. :)

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