<embed>


HTML <embed> Tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</title> 
</head>
<body>

<embed src="helloworld.swf" tppabs="http://w3schools.com/tags/helloworld.swf">

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

All major browsers support< embed> tag.


Tag definition and usage instructions

<embed> The tag defines a container for embedding external applications or interactive programs (plug-ins).


Differences between HTML 4.01 and HTML5

The<embed> tag is a new tag in HTML 5.


Attribute

New: New attribute in HTML5.

PropertiesValueDescription
heightNew pixelsSpecifies the height of embedded content.
srcNewURL Specifies the URL of the embedded content.
typeNewMIME_typeSpecifies the MIME type of the embedded content.
Note: MIME = Multipurpose Internet Mail Extensions.
widthNewpixelsSpecifies the width of the embedded content.

Global attributes

<embed> tag supports HTML global attributes.


Event attributes

<embed> tag supports HTML event attributes.