It’s Festive Season! Enjoy 30% Off

Use code FESTIVE30 at checkout

Code has been added to clipboard!

HTML embed Tag

Reading time 1 min
Published Mar 19, 2019
Updated Oct 1, 2019

HTML embed: Main Tips

  • The HTML <embed> element incorporates an external resource in a specified place of a webpage.
  • The external resource can be an application, a browser plug-in, or a video.

Use of embed

<embed> HTML element embeds material into webpages.

The example below shows how to embed video HTML:

Example
<embed src="doggo-beach.mp4">

Note: learn more about including videos and audio files in the HTML multimedia tutorial. To learn more about adding plug-ins, refer to the HTML plug-ins tutorial.

Attributes for embed

height

It is possible to embed video HTML and adjust its height with the height attribute.

Example
<embed height="80" src="doggo-beach.mp4">

src

The src attribute defines the resource location (either a relative path or an absolute web address).

Example
<embed src="doggo-beach.mp4">

type

The type attribute sets the MIME type of the resource. A browser will be ready with corresponding instantiation process.

Example
<embed type="video/webm" src="doggo-beach.mp4">

width

It is also possible to make HTML embed video and set its width with the width attribute.

Example
<embed width="400" src="doggo-beach.mp4">

Browser support

Browser image
Chrome
All
Browser image
Edge
All
Browser image
Firefox
1+
Browser image
IE
All
Browser image
Opera
All
Browser image
Safari
All

Mobile browser support

Browser image
Chrome
All
Browser image
Firefox
4+
Browser image
Opera
-
Browser image
Safari
-