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
-
Basics
Introduction
Syntax
Editors
Basic Examples
Head Section
<!DOCTYPE>
Tags and Elements
Semantic Elements
Tags Reference
Attributes
Comments
Block and Inline Elements
Forms
Form Elements
Input
Responsive Web Design
Inline Scripts
Uniform Resource Locator
Redirect
XHTML
Geolocation
Drag and Drop
Local Storage
Web Workers
Server-Sent Events
Character Encoding
Text Formatting
Quotation and Citation Elements
Headings
Paragraphs
Links
Tables
Lists
Symbols
Space
Tab
Styles
Computer Code
Layout
Classes
Colors
Images
iframes
Audio Player
Video Player
YouTube Videos
Multimedia
Canvas
SVG
<!-- -->
<a>
<abbr>
<acronym> DEPRECATED
<address>
<applet> DEPRECATED
<article>
<aside>
<audio>
<b>
<base>
<basefont> DEPRECATED
<bdi>
<bdo>
<big> DEPRECATED
<blink> DEPRECATED
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<center> DEPRECATED
<cite>
<code>
<col>
<colgroup>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<dir> DEPRECATED
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<font> DEPRECATED
<footer>
<form>
<frame> DEPRECATED
<frameset> DEPRECATED
<h1> – <h6>
<head>
<header>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<keygen> DEPRECATED
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<menu>
<menuitem> DEPRECATED
<meta>
<meter>
<nav>
<noframes> DEPRECATED
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike> DEPRECATED
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt> DEPRECATED
<u>
<ul>
<var>
<video>
<wbr>