HomeHTMLWhat is Embed Tag in HTML

What is Embed Tag in HTML

What is Embed Tag in HTML

Using Embed tag, we can include external plugins such as flash player, web page, a picture, a media player into our website or web page. Embed HTML tag has some attributes they are:

  • src
  • height
  • weight
  • autoplay
  • loop
  • playcount
AttributseDescriptionValue
heightSpecifies the height of the embedded contentpixels
srcSpecifies the address of the external fileURL
typeSpecifies the media typemedia_type
widthSpecifies the width of the embedded contentpixels
<html>
<body>
<embed src="Path" height="400" width="400" autoplay="true" playcount="2" loop="true" > Start my Video </embed>
<p></p>
</body>
</html>

Note: embed tag is no longer used by browsers. instead of embed tag, you can use such tags;

To add Image – <img>

To show HTML – <iframe>

To add video or audio file to web page – <video>, <audio>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest News