HTML <embed> Tag
The <embed> tag in HTML is used for embedding external applications which are generally multimedia content like audio or video into an HTML document. It is used as a container for embedding plug-ins such as flash animations. This tag is a new tag in HTML 5, and it requires only starting tag.
Attributes: The <embed> tag contains four attributes which are discussed below:
- height: This attribute contains the attribute value in pixel. It is used to specify the height of the embedded content.
- src: It is used to hold the URL. It is used to specify the web address of the embedded content.
- width: The width value is set in pixels. It is used to specify the width of embedded content.
- type: It contains the media_type content. It is used to specify the media type of the embedded content.
Below programs illustrates the <embed> element in HTML:
Example 2: This example uses the width and height property with the <embed> tag.
- Google Chrome
- Internet Explorer