Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML embed src Attribute

HTML src property

HTML embed Tag Reference HTML tag

Example

An embedded Flash animation:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the src property.


Definition and Usage

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


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.


Syntax

Attribute values

Value Description
URL Specifies the address 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 Reference HTML tag