Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question