Easy Tutorial
❮ Att Frame Scrolling Html Iframe ❯

HTML <iframe> src Attribute

HTML <iframe> Tag

Example

A simple application of an <iframe>:


Browser Support

All major browsers support the src attribute.


Definition and Usage

The src attribute specifies the address of the document to be embedded in the <iframe>.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
URL Specifies the address of the document to be displayed in the iframe. Possible values: Absolute URL - Points to another website (e.g., src="http://www.example.com/default.htm")<br>Relative URL - Points to a file within the website (e.g., src="default.htm")

❮ Att Frame Scrolling Html Iframe ❯