English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Comprehensive List

HTML: <embed> src Attribute

This article introduces the HTML embed src attribute, which specifies the address of the external file to be embedded. Online examples demonstrate how to use the HTML embed src attribute, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <embed> tag

Online Example

An embedded flash animation:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <embed> src Attribute Usage-Basic Tutorial(oldtoolbag.com)</title>
</head>
<body>
<embed src="helloworld.swf">
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the src attribute.

Definition and Usage

The src attribute specifies the location of the external file to be embedded.

HTML 4.01 and HTML5differences between

The <embed> tag is an HTML5 new tag in

Syntax

<embed src="URL">

Attribute value

ValueDescription
URLSpecifies the location of the external file to be embedded.

Possible values:

  • Absolute URL - Points to another website (for example href="http://www.example.com/hello.swf")

  • Relative URL - Points to a file within the website (for example href="hello.swf")

 HTML <embed> tag