HTML <embed> src Attribute

The src attribute on an <embed> tag specifies the URL or path of a resource to be embedded in the current page.

Example

#

A src attribute on an <embed> element.
The attribute references an image file.

<embed src="/img/html/vangogh-bedroom.jpg">

Using src

The src attribute specifies the URL or path of the resource to be embedded.

The URL of the embedded file can be internal (from same website) or external (another website).


Syntax

<embed src="URL">

Values

#

Value Description
URL URL or path to the resource to be embedded.

Browser support

Here is when src support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <embed>
Guides