Learn html - html tutorial - embed tag - html examples - html programs
The <embed> element is used to describe a container for an external application or interactive content.
The <embed> tag support the Global Attribute and Event Attribute.
In the content categories are flow content, phrasing content, embedded content, interactive and palpable content.
Syntax for <embed> tag:
<embedsrc =”URL”>
Differences between HTML 4.01 and HTML 5 for <embed> tag in HTML:
HTML 4.0.1
HTML 4 does not support <embed> tag.
HTML 5
HTML 5 support <embed> tag.
Sample Coding for <embed> tag:
Tryit<!DOCTYPE html><html><head><title>Wikitechy embed tag</title></head><body><h2>HTML embed tag with example.</h2><embedsrc="https://www.youtube.com/embed/8iFmjh_YWxQ"></embed></body></html>
Code Explanation for <embed> tag:
The <embed> tag is used to container for the YouTube video.
src attribute used to define the source URL for the embedded content.
Output for <embed> tag:
The output shows the YouTube video embedded to the document.
Attributes of <embed> tag:
Attribute
Value
HTML4
HTML5
Description
src
URL
No
Yes
It specifies the address of the external file to embed.
width
pixels
No
Yes
It specifies the width of the embedded content.
type
media_type
No
Yes
It specifies the media type of the embedded content.
html5 media playerhtml training video object html tagembed tag for videoembed tag pdfembed tag for audio in htmlembed html in htmlembed vs iframetext input type element attributeshtml tutorialshtml editorhtml codehtml formhtmltutorialhtml colorhtml color codeshtml tablehtml imghtml5html code for websitehtml and csshtml programshtml websitefree html editorhtml5 tutorialwysiwyg html editorhtml tutorial pdfhtml converterphp tutorialhtml examplehtml tutorialcss tutorialhtml csshtml tagshtml basicscode htmlhtml onlinehtml mailtohtml langhtml tags list