HTML <embed> src Attribute

❮ HTML <embed> tag

Example

<h1>embed video</h1>
<embed type="video/mp4" src="video.mp4" width="300" height="150">

<h1>embed image</h1>
<embed type="image/jpeg" src="img-boy.jpg" width="300" height="150">

Meaning

Specifies the URL of source content for the embedded object.


Standard Syntax

<embed type="mediaType" src="URL" width="pixels" height="pixels">



Browser Support




Status







Attribute Values

Value Description
URL

Value can be

  • An absolute URL - source file within or another web site ( href="http://www.example.com/index.html")
  • A relative URL - source file within a web site ( href="index.html")
❮ HTML <embed> tag