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

HTML <embed> Tag


The <embed> tag is used to include an external application in the HTML document.

Following are the attributes −

  • height: It is the height of the embedded content in pixels.
  • src: Address of the external file to embed i.e. mention the URL.
  • type: It is the media type that specifies the media type of the embedded content
  • width: It is width of the embedded content in pixels

Let us now see an example to implement the <embed> tag in HTML −

Example

<!DOCTYPE html>
<html>
<body>
<h2>CSS Demonstrating Application</h2>
   <embed src="https://www.tutorialspoint.com/flex/samples/CSSApplication.swf" height="400" width="600">
</body>
</html>

Output

HTML <embed> Tag

In the above example, we have used the <embed> element −

<embed src="https://www.tutorialspoint.com/flex/samples/CSSApplication.swf" height="400" width="600">

Under the src attribute of the embed element, we have set an external application in the form of a .srf file −

https://www.tutorialspoint.com/flex/samples/CSSApplication.swf