html
  1. html-embed-tag

HTML <embed> Tag

  • The <embed>tag in HTML is used to embed different types of content, such as images, videos, audio, and other multimedia, into a web page.
  • It allows you to display external content within the HTML document.

 <embed src="video.webm" type="video/mp4" width="400" height="300">
Try Playground
  • This code embeds a video file named "video.mp4" with a specified width and height.
  • The src attribute specifies the URL or path to the content to be embedded, while the type attribute specifies the MIME type of the embedded content.

Attributes

  • src: Specifies the URL of the resource to be embedded.
  • type: Defines the MIME type of the embedded content.
  • width: Sets the width of the embedded content in pixels.
  • height: Sets the height of the embedded content in pixels.
  • alt: Provides alternative text or a fallback in case the embedded content cannot be displayed.
  • pluginspage: Specifies the URL where the required plugin for the embedded content can be downloaded.
  • autoplay: When set to "true" or "autoplay," it specifies that the embedded content should automatically start playing when the page loads.
  • loop: If set to "true," the content will continuously loop when it reaches the end.
  • controls: If set to "true," it displays player controls for multimedia content (such as play, pause, volume control, etc.).
Published on: