Home Tutorial Html Html5 HTML5 embed tag example, Example of tag  in HTML5.

 
 

Share on Google+Share on Google+
HTML5 embed tag example, Example of tag  in HTML5.
Posted on: September 17, 2010 at 12:00 AM
Advertisement
In this tutorial, you will see the use and Implementation of embed tag.

HTML5 embed tag example, Example of <embed> tag  in HTML5.

Introduction:

In this tutorial, you will see the use of embed tag of html5. It is used for including external resource in your HTML document. With the help of embed tag, you can add video, audio, or image etc. It is a singleton tag. you can not write any thing in it.

Attribute of embed tag.

There are following attributes in embed tag:

Attribute value Description
src URL Address of resource file.
height pixel height of media.
type type of media define type of media.
width pixel define width of media.

Declaration Syntax :

Declaration syntax of embed tag in HTML5.

                           <embed src="" type="">

Example of <embed > in HTML5:

Code:
EmbedTag.html
<!doctype html >
<html >
<head>
<title>embed  Tag </title>
</head>
<body>
<p><b>Example of embed tag in HTML5.</b></p>
<embed src="Pick.jpg" height="300" width="300" />
</body>
</html>
Output:

Download this code

Difference Between HTML5 and HTML4.01:

The embed tag  is only available in HTML5. It is not available in HTML4.01.

Advertisement

Related Tags for HTML5 embed tag example, Example of tag  in HTML5.:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 17, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com