Embed is a new tag of HTML5. It can define a container for embedding external applications or interactive programs (plug-ins). The syntax "<embed src="...">"; the embed tag must There is the src attribute, which is used to specify the URL of the embedded content.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
The
Syntax:
<embed src="...">
Embed tag attributes:
Attribute | Value | Description |
---|---|---|
height | pixels | Sets the height of embedded content. |
src | url | The URL of the embedded content. |
type | type | Defines the type of embedded content. |
width | pixels | Set the width of the embedded content. |
Example: embedded flash cartoon
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <embed src="/statics/demosource/helloworld.swf"> </body> </html>
[Related recommendations: html video tutorial、webfrontend】
The above is the detailed content of Is embed a new tag in html5?. For more information, please follow other related articles on the PHP Chinese website!