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:
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.
src
The src
attribute defines the resource location (either a relative path or an absolute web address).
type
The type
attribute sets the MIME type of the resource. A browser will be ready with corresponding instantiation process.
width
It is also possible to make HTML embed video and set its width with the width
attribute.