Embed multimedia files with <object> element

Multimedia content can be directly inserted into the browser window using the <object>..</object> element.

Attributes of the <embed> element.

AttributesDescription
dataA valid URL of the multimedia file
typeThe MIME type associated with the multimedia file. This attribute is not necessary as the browser itself determine based on the extension.
classidused by internet explorer to identify the ActiveX control that will be used to render the object.
widthThe width of the space the browser will allocate to the multimedia file.
heightThe height of the space the browser will allocate to the multimedia file.
alignThe alignment used to render the content of the multimedia file relative to the other elements
hspace & vspaceThe white space around the object
borderThe thickness of the border around the object.


snippet
<html>
<head></head>
<body>
<table>
<tr>
<td><object src="logo.jpg" width="100" height="200"></object></td>
<td><object src="sound.mp3" width="100" height="200"></object></td></tr>

</table>
</body>
</html>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 # # # # #