Code has been added to clipboard!

HTML embed Tag

Reading time 1 min
Published Mar 19, 2019
Updated Jan 21, 2020

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

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

Mobile browser support

Chrome
All
Firefox
4+
Opera
-
Safari
-