History of Embedding Content
The object element is an older element used for embedding content like java applets, flash files and other files. The object element requires two attributes data and type. The data attribute is used for specifying the source file and the type attribute is used for specifying the type of the file.
<object data="example.swf" width="300" height="399" type="application/x-shockwave-flash"> Your browser does not support plugins. </object>
The embed element is a newer way for including embedded objects. Similar to the object element it requires src attribute to represent the file and type for the file.
<embed src="example.swf" width="300" height="399" type="application/x-shockwave-flash">
You can embed any type of file like images, audio and video. But this is not recommended. These have seperate elements for a reason. Embedding these files has no advantages compared to dedicated elements.