|
|
HTML <iframe> src Attribute
HTML <iframe> tag
Example
An iframe in its simplest use:
<iframe src ="/default.asp">
<p>Your browser does not support iframes.</p>
</iframe> |
Try it yourself » |
Definition and Usage
The src attribute specifies the URL of the document to show in an iframe.
Browser Support

The src attribute is supported in all major browsers.
Syntax
Attribute Values
| Value |
Description |
| URL |
The address to the document to show in the iframe. Possible values:
- An absolute URL - points to another web site (like src="http://www.example.com/default.htm")
- A relative URL - points to a file within a web site (like src="default.htm")
|
HTML <iframe> tag
|
|
|