Unlike iframe before it was a non standard tag, which is standardized in HTML 5. Which admittedly was implemented by all major browsers. The embed element provides an integration purpose for an external (typically non-HTML) application or interactive content. The HTML tag is used for embedding an external application or interactive content into an HTML document.
The basic tag is written like this with the URL of the embedded resource added to the src attribute (i.e. between the double quotes).
The type attribute accepts the MIME type of the embedded resource.
Adjusting Height and Width
Output: Using The Height and Width With Embed
Using Embed Without Borders.
By default, embed don’t have a border around it. But we can also remove the border by using the style attribute and use the CSS border property.
Output: using embed without any borders
In embed tag we can also apply borders with different colors.
Output: Using Embed With Borders Of Colour Solid Orange
Supported Browsers: The browsers supported by Embed are listed below:
- Google Chrome
- Internet Explorer
- Apple Safari
- HTML | Iframes
- Alternative for <blink> tag
- HTML5 | Video
- HTML5 | Audio
- How to change the font of HTML5 Canvas using a button in Angular.js?
- HTML5 Game Development | Infinitely Scrolling Background
- HTML5 | Mathematical operators
- HTML5 | MathML <menclose> Tag
- HTML5 | <footer> Tag
- HTML5 | Semantics
- HTML5 | <details> tag
- HTML5 | <aside> Tag
- HTML5 | <dialog> Tag
- Difference between HTML and HTML5
- HTML5 | article tag
- HTML5 | <meter> Tag
- HTML5 | date attribute in <input> Tag
- How to add video in HTML5 ?
- Change an HTML5 input placeholder color with CSS
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.