HTML5 embed tag example, Example of tag  in HTML5.


 

HTML5 embed tag example, Example of tag  in HTML5.

In this tutorial, you will see the use and Implementation of embed tag.

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.

Ads