HTML <embed> Tag

Description

The <embed> HTML tag is used to insert external content, typically multimedia elements like audio or video, into a web page. It allows web developers to integrate media files from external sources by specifying the source URL and defining attributes such as the type of content and its dimensions. This tag is especially useful for incorporating third-party media players or interactive content into a webpage, making it a versatile tool for enhancing the user experience and providing rich multimedia content on websites.

Properties

Permitted Parents
Any element that accepts embedded content
Content
None. It is an empty element.
Start/End Tags
Start tag: required, End tag: forbidden

Example

<embed type="video/webm" width="240" height="176" src="audio/toy.mp4">

Attributes

Attribute Definition
height Specifies the height, in pixels, to display the external content
src Specifies the location of the external file. Its value must be the URI of the resource being embedded
type Specifies the type of the embedded content. If specified, the value must be a MIME type
width Specifies the width, in pixels, to display the external content

Global Attributes

The <embed> tag also supports the Global Attributes in HTML5

Event Attributes

The <embed> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <embed> tag.

Desktop
Edge Chrome Firefox Opera Safari
121112.14
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
18412.13.214.4

Last updated by CSSPortal on: 30th March 2024