Loading...
HTML <embed> Tag

HTML <embed> Tag

In this tutorial, we will learn about embed tag in HTML with the help of examples.


<embed> Tag

Embed tag <embed> is used to define a container for external application such as web page, a picture or a media player.

Syntax

<embed />

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Embed Tag</title>
  </head>
  <body>
    <embed src = "./boat.jpg" width = "500px" />
  </body>
</html>

Output


Specific Attribute

Attribute Value Description
height pixels
percentage
Specifies the height of the container
src URL Specifies the address of the source file
type MIME_type Specifies the MIME type
width pixels
percentage
Specifies the width of the container

Global Attribute

Embed Tag support all the global attributes of HTML.


Event Attribute

Embed Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of embed tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML fieldset Tag.

- Related Topics