C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML <embed> tagHTML <embed> tag is used to embed an external document in an HTML file which can be a third party application, multimedia, plugin(interactive content), etc. This element is new in HTML5. Note: The <embed> element can be used to contain third party applications as well multimedia documents but in HTML5 the newly added <audio> and <video> elements are especially used to embed multimedia in HTML document.Syntax<embed src=" " ></embed> Following are some specifications about the HTML <embed> tag
Example 1<!DOCTYPE html> <html> <head> <title>Embed Tag</title> <style> h2{ color: #cd5c5c;} p{ color: #20b2aa; font-style: italic;} </style> </head> <body> <h2>Example of embed tag</h2> <p>The Dancing Penguin</p> <embed src="giphy.gif" height="200" width="300"></embed> </body> </html> Output: AttributeTag-specific attribute
Global attributeThe <embed> tag supports the global attributes in HTML Event attributeThe <embed> tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML fieldset Tag
|