Easy Tutorial
❮ Prop Script Defer Prop Style Columnwidth ❯

Embed src Attribute

Embed Object

Example

Return the URL of the embedded file:


Definition and Usage

The src attribute is used to set or return the value of the src attribute of the embed element.

The src attribute describes the external address (URL) of the embedded file.


Browser Support

All major browsers support the src attribute.


Syntax

Return the src attribute:

Set the src attribute:

Attribute Values

Value Description
URL Describes the external address (URL) of the embedded file <br> <br> Possible values: Absolute URL - points to another site (e.g., src="http://www.example.com/hello.swf") <br> Relative URL - points to an address within the site (e.g., src="hello.swf")

Technical Details

| Return Value: | String, representing the URL of the embedded file, returns the actual URL including the protocol (http://) | | --- | --- |


Related Pages

HTML Reference: HTML <embed> src Attribute


❮ Prop Script Defer Prop Style Columnwidth ❯