HTML 5 <embed> Tag
Example
<embed src="helloworld.swf" /> |
View it » |
Definition and Usage
The <embed> tag defines embedded content, such as a plug-in.
Differences Between HTML 4.01 and HTML 5
The <embed> tag is new in HTML 5
Tips and Notes
Tip: You can NOT write text between the start and end tags, to show older browser that they do not support this tag, like for <audio> and <video>.
Attributes
New : New in HTML 5.
Attribute |
Value |
Description |
heightNew |
pixels |
Sets the height of the embedded content |
srcNew |
url |
The URL of the embedded content |
typeNew |
type |
Defines the type of the embedded content |
widthNew |
pixels |
Sets the width of the embedded content |
Standard Attributes
The <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|