Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
354 views
in Technique[技术] by (71.8m points)

html - Hasn't the <embed> tag been around for a while?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...