没有< embed>标签已经存在了一段时间? [英] Hasn't the <embed> tag been around for a while?

查看:113
本文介绍了没有< embed>标签已经存在了一段时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 W3Schools Pluralsight的 HTML5课程,< embed> 标记对于HTML5是新。但是我一直在使用它......永远,它可以在我测试过的任何浏览器中使用它。 这个页面例如使用< embed> 标签,它适用于所有浏览器。

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

解决方案

Mozilla文档的确同意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> 的几个来源相反,我在 HTML 3 DTD (或 3.2 ),这意味着它是可能从未正式标准化。 HTML 2 似乎更少进化(正如人们所期望的)。有大量关于< 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.

这篇关于没有&lt; embed&gt;标签已经存在了一段时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆