Html5 embed Tag

Embed tag is new in Html5. which embed tag is use to embedded content, such as a plug-in.

Example Code



<!DOCTYPE HTML>
<embed src="TutorialsScripts.swf" />

In the above embed tag is use to playing for .swf file formats and embed tag is use to refer the flash fils.

Attribute :

  • Height : Height attribute is use to set a height for embed tag.
  • Width : Width attribute is use to set a width for embed tag.
  • Src: Src attribute value is Url. which is use to url for the media.
  • Type :Type attribute value is MIME_type.which is specifies the MIME type for the media elements.