HTML Tag Reference - HTML tag <embed>








This <embed> element loads sound files or other file types not supported by the browser, such as Flash movies.

Browser compatibility

<embed> Yes Yes Yes Yes Yes

What's new in HTML5

The <embed> tag is new in HTML5.

Attribute

height
Set the embedded content height in pixels
src
Set the address URL for embed content
type
Set the media type
width
Set the width in pixel

Global Attributes

The <embed> tag supports the Global Attributes in HTML.

Event Attributes

The <embed> tag supports the Event Attributes in HTML.





Default CSS Settings

embed:focus { 
    outline: none;
}

Example

A demo showing how to use <embed> tag.

<html>
<body>
        <object width="560" height="349" 
                data="http://www.youtube.com/v/a2_6bGNZ7bA" 
                type="application/x-shockwave-flash"> 
            <param name="allowFullScreen" value="true"/> 
        </object> 
</body>
</html>

Click to view the demo