HTML embed Tag defines a container for external content like a web page or a multimedia file like audio or video or a plug-in application.
Table of Contents
Syntax of HTML embed Tag
The Syntax of HTML embed Tag is shown below, It has only starting tag.
<embed >
Usage of HTML embed Tag
HTML embed Tag is used to embed the external file like audio, video, or picture on a web page.
HTML embed tag can also be used to embed an external plug-in application or html file.
Note: For videos one should use HTML5 video tag instead of embed tag, while for audios, audio tag can be used.
Example of HTML embed Tag
Simple example of HTML embed Tag is shown below.
<embed type="video/webm" src="intro.mp4" width="500" height="500">
Another example of HTML embed tag is given below.
<embed type="text/html" src="code.html" width="600" height="400">
Browser Support for HTML embed Tag
HTML embed Tag is supported by all major browsers including Safari and Internet Explorer.
Global Attributes Support in HTML embed Tag
The HTML embed Tag supports all Global Attributes.
Event Attributes Support in HTML embed Tag
The HTML embed Tag supports all Event Attributes.
HTML embed Tag Video
Watch our video on HTML embed Tag.
Post a Comment