<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
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.
Properties | Value | Description |
---|---|---|
heightNew | pixels | Specifies the height of embedded content. |
srcNew | URL | Specifies the URL of the embedded content. |
typeNew | MIME_type | Specifies the MIME type of the embedded content. Note: MIME = Multipurpose Internet Mail Extensions. |
widthNew | pixels | Specifies the width of the embedded content. |
Global attributes
<embed> tag supports HTML global attributes.
Event attributes
<embed> tag supports HTML event attributes.