Multimedia content can be directly inserted into the browser window using the
<object>..</object>
element.
Attributes of the <embed> element.
Attributes | Description |
---|
data | A valid URL of the multimedia file |
type | The MIME type associated with the multimedia file. This attribute is not necessary as the browser itself determine based on the extension. |
classid | used by internet explorer to identify the ActiveX control that will be used to render the object. |
width | The width of the space the browser will allocate to the multimedia file. |
height | The height of the space the browser will allocate to the multimedia file. |
align | The alignment used to render the content of the multimedia file relative to the other elements |
hspace & vspace | The white space around the object |
border | The 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>