HTML <embed> srcAttribute

HTML embed 标签参考手册HTML <embed> Tag

Examples

An embedded Flash animation:

<embed src="helloworld.swf.html">

Try it »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the src attribute.


Definition and Usage

The src attribute specifies the address of the external file to embed.


Differences between HTML 4.01 and HTML5

The <embed> tag is new in HTML5.


Syntax

<embed src="URL.html">

Attribute Values

Value Description
URL Specifies the address of the external file to embed.

Possible values:

  • Absolute URL - points to another website (like href="http://www.example.com/hello.swf")
  • Relative URL - points to a file within a website (like href="hello.swf.html")


HTML embed 标签参考手册HTML <embed> Tag Other Extensions