问题描述
根据和 HTML5课程,< embed>
标记对于HTML5是新。但是我一直在使用它......永远,它可以在我测试过的任何浏览器中使用它。 页面例如使用< embed>
标签,它适用于所有浏览器。
为什么?这只是一个由渴望的浏览器制造商提前实施的草案吗?
的确同意W3Schools(),但你是对的。 < embed>
已被使用了很长时间,但对于HTML5来说已经被正确地标准化了。 a href =http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#h-13.5 =nofollow> < object>
。与在HTML 4中弃用的州< embed>
的几个来源相反,我在 (或),这意味着它是可能从未正式标准化。 似乎更少进化(正如人们所期望的)。有大量关于< applet>
的文档,但我找不到关于< embed>
任何地方官方。
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?
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.
这篇关于没有< embed>标签已经存在了一段时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!