Hasn't the <embed> tag been used for a while?

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

Why? Was it just a project that was implemented ahead of time, involving browser developers?

+6
source share
4 answers

Mozilla docs agree with W3Schools ( at a time ), but you're right. <embed> used for many years, but is standardized for HTML5.

HTML 4 is officially used by <object> . Unlike several sources that claim that <embed> deprecated in HTML 4, I cannot find mention of this in the HTML 3 DTD (or in 3.2 ), which means that it is probably never standardized officially. HTML 2 seems even less developed (as you would expect). There is a lot of documentation about <applet> , but I can not find a single mention of <embed> anywhere official.

+4
source

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

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

http://w3.org/

+3
source

embed not part of the W3C standards, but was useful enough for browser support. HTML5 takes a pragmatic approach to what is, so it is here.

+2
source

<embed> actually was a while, but it is deprecated in HTML4 and XHTML1. is he was re - introduced in HTML5.

** Fixed.:)

+1
source

Source: https://habr.com/ru/post/887887/


All Articles