P
P
Petya Anisimov2014-06-04 16:10:05
HTML
Petya Anisimov, 2014-06-04 16:10:05

What is the difference between embed tag and object tag?

After all, they do the same job (excerpts from htmlbook):
>The <object> element tells the browser how to load and display objects that the browser doesn't natively understand. As a rule, such objects require connection to the browser of a special module, called a plug-in, or the launch of an auxiliary program.
>The <embed> element is used to load and display objects (such as video files, flash movies, some audio files, etc.) that the browser does not natively understand. As a rule, such objects require connection to the browser of a special module, called a plug-in, or the launch of an auxiliary program.
Why did embed replace object?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2014-06-04
@petanisimov

The tag <embed>is the HTML5 specification, <object>- HTML4.
If you are writing a site in HTML5, use the < embed > tag to embed objects on the page, otherwise the page will not pass validation.

D
Denis Ineshin, 2014-06-04
@IonDen

Crossbrowser slaughter, that's what it is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question