HTML Tutorial
<embed>
TagThe <embed>
tag allows you to embed interactive content, such as videos, audio files, and applets, into an HTML document.
<embed>
Attribute | Description |
---|---|
src | Specifies the URL of the file to be embedded |
type | Specifies the MIME type of the embedded content |
width | Sets the width of the embedded object in pixels |
height | Sets the height of the embedded object in pixels |
pluginspage | Links to a page that contains any necessary plugins for viewing the embedded content |
<embed>
<embed src="video.mp4" type="video/mp4">
<embed src="audio.mp3" type="audio/mpeg">
<embed src="applet.jar" type="application/x-java-applet">
Exploring the <embed>
tag
<!DOCTYPE html>
<html>
<body>
<p>Embedded Video:</p>
<embed src="video.mp4" type="video/mp4" width="320" height="240">
</body>
</html>