The embed element was initially introduced by the Netscape 2.0 browser and its purpose was to allow developers to embed a third party data object into a web document. That always required that this particular plugin-in is installed on the user's PC, or otherwise a warning message would occur. The embed element was officially first time introduced in HTML5, meaning that in all previous HTML standards it was an "unofficial" element or tag.
Syntax:
<embed />
Attributes:
- src - Provides the path of the external file to be used; it has to be in a form of URL.
- type - Specifies the media type that of the embedded object.
- width - Defines the width of the embedded object in pixels.
- height - Defines the height of the embedded object in pixels.
- global attributes
- event attributes
Example
The example with embed tag in HTML5:
Comments
No comments have been made yet.
Please login to leave a comment. Login now