TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML embed tag

HTML embed tag with examples, html5, forms, input, text, anchor, image, heading, marquee, textarea, paragraph, title, quotes, code etc.

<< Back to HTML

HTML <embed> tag

HTML <embed> tag is used to embed an external document in an HTML file which can be a third party application, multimedia, plugin(interactive content), etc. This element is new in HTML5.

Note: The <embed> element can be used to contain third party applications as well multimedia documents but in HTML5 the newly added <audio> and <video> elements are especially used to embed multimedia in HTML document.

Syntax

<embed src=" " ></embed> 

Following are some specifications about the HTML <embed> tag

Display block
Start tag/End tag Both Start and End tag
Usage Embed third-party applications

Example 1

<!DOCTYPE html>
<html>
<head>
<title>Embed Tag</title>
<style>
	h2{
	color: #cd5c5c;}
	p{
	color: #20b2aa;
	font-style: italic;}
 </style>
</head>
<body>
<h2>Example of embed tag</h2>
<p>The Dancing Penguin</p>
<embed src="giphy.gif" height="200" width="300"></embed>
</body>
</html>
Test it Now

Output:

HTML embed tag

Attribute

Tag-specific attribute

Attribute Value Description
height pixels It specifies the height of the embedded content
src URL It defines the resource location of the embedded document.
type media-type It specifies the MIME type.
width pixels It determines the width of the embedded content.

Global attribute

The <embed> tag supports the global attributes in HTML

Event attribute

The <embed> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<embed>YesYesYesYesYes
Next TopicHTML fieldset Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf