SIGN UP MEMBER LOGIN:    
ARTICLE

The embed tag in HTML5

Posted by Valon Ademi Articles | HTML 5 July 29, 2011
The embed tag is used for embedding another resource or interactive content into the document.
Reader Level:
Download Files:
 

The HTML <embed> tag is used for embedding another resource or interactive content into the document. The <embed> element is an empty element and this tag ending with the delimiter string />.This tag has no closing tag like <embed />. This tag is used to insert nonstandard elements content , typically a multimedia element that is not supported by HTML. You can use <embed > tag to add images, audio or video etc or you can write any thing in it.

Syntax :

<embed src="" type=""/>

This tag puts a browser plug-in in the page. A plug-in is a special program that adds specific abilities to a larger software application and it is located on the client computer not on your web server that handles its own special type of data file.

Attributes Introduced by HTML5
Attributes Values Description
src url This attribute specifies Address of resource file using URL.
type type This attribute used to specifies the MIME type of the embedded object and define type of media.
height pixels This attribute specifies the height of the embedded content.
width pixels This attribute specifies the width of the embedded content.


HTML5 Event Attributes

onabort onblur oncanplay
oncanplaythrough onchange onclick
oncontextmenu ondblclick ondrag
ondragend ondragenter ondragleave
ondragover ondragstart ondrop
ondurationchange onemptied onended
onerror onfocus onformchange
onforminput oninput oninvalid
onkeydown onkeypress onkeyup
onload onloadeddata onloadedmetadata
onloadstart onmousedown onmousemove
onmouseout onmouseover onmouseup
onmousewheel onpause onplay
onplaying onprogress onratechange
onreadystatechange onscroll onseeked
onseeking onselect onshow
onstalled onsubmit onsuspend
ontimeupdate onvolumechange onwaiting

Code:

<!DOCTYPE html>
<
html>
<
head>
    <title></title>

</
head>
<
body>
<
embed type="video/quicktime" src="mov/sample_sorenson.mov" width="340" height="250" />
<
br />
<
br />
<
br />
<
br />
<
embed src="Image/moonchilde.jpg" type="image"  height="400" width="400" />
</
body>
</
html>
  
Output

Fire Fox

embed-tag-in-html5.gif

Opera

embed tag

Safari

embed tag

Chrome

embed tag


embed tag


Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Become a Sponsor