🔥 $100K Hit! Where Will Bitcoin Go Next? Find Out Live!

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.

DataCamp
Pros
  • Easy to use with a learn-by-doing approach
  • Offers quality content
  • Gamified in-browser coding experience
  • The price matches the quality
  • Suitable for learners ranging from beginner to advanced
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable
Udacity
Pros
  • Simplistic design (no unnecessary information)
  • High-quality courses (even the free ones)
  • Variety of features
Main Features
  • Nanodegree programs
  • Suitable for enterprises
  • Paid Certificates of completion
edX
Pros
  • A wide range of learning programs
  • University-level courses
  • Easy to navigate
  • Verified certificates
  • Free learning track available
Main Features
  • University-level courses
  • Suitable for enterprises
  • Verified certificates of completion

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
-