没有
根据 W3Schools 和 Pluralsight 的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
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.经过一些研究和你们的帮助后,我发现
标签最初是由 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/
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.标签
实际上已经存在了一段时间,但在 HTML4 和 XHTML1 中已被弃用。它在 HTML5 中重新引入。** 已更正。 :)
The
<embed>
taghas in fact been around for a while, but it was deprecated in HTML4 and XHTML1. Itwasre-introduced in HTML5.** Corrected. :)