<embed>



HTML <embed> Tag


The <embed> tag is a self-closing element used for embedding an external application or interactive content into an HTML document.


Example :

<embed src="html.pdf" width="400" height="500">

<embed> Tag Attributes 


Attribute Description Example
height

Specifies the height of the embedding in pixels.

Non-negative integer.

<embed height="300">

 

src Specifies the location of the resource to be embedded.
<embed src="/demo.pdf">

 

type Specifies the content type of the file to be embedded.
Must be a valid MIME type.
<embed type="video/webm">

 

width

Specifies the width of the embedding in pixels.

Non-negative integer.

<embed height="500">