Computer >> Computer tutorials >  >> Programming >> HTML

How to add a container for an external (non-HTML) application in HTML5


Use the <embed> tag in HTML, represent a container for external application or interactive content. The HTML <embed> tag also supports the following additional attributes −

Attribute
Value
Description
height How to add a container for an external (non-HTML) application in HTML5pixels
Specifies the height.
src How to add a container for an external (non-HTML) application in HTML5URL
Specifies the address of the source file.
type How to add a container for an external (non-HTML) application in HTML5MIME_type
Specifies the MIME type
width How to add a container for an external (non-HTML) application in HTML5pixels
Specifies the width.

Example

You can try to run the following code to add a container for an external application in HTML5 −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Embed Tag</title>
   </head>
   <body>
      <embed src = "/html/yourfile.mid" width = "300" height = "150" />
   </body>
</html>