Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <embed> tag.

Use of <embed> tag

The <embed> tag allows the web-browsers to allow embed the external contents such as Flash-based object.

Display:Inline

Example of <embed> tag

    <embed src="helloworld.swf">

Supported Browsers.

Tag
<embed> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<embed src="helloworld.swf">
</body>
</html>

Output

More Reference


<embed> tag is new in HTML5.
It is an empty tag such that id does not have end tag.

Default CSS Properties of <embed> tag

embed:focus {
outline: none;
}

Attributes of <embed> tag

Attribute Value Notes
height pixels It specifies the displayed height of the external embedded content.
src URL It specifies the target of the external file to be embedded.
type media_type It specifies the media type of the external type.
width pixels It specifies the displayed width of the external embedded content.