HTML iframe src Attribute

Definition and Usage

The src attribute specifies URL of the iframe content.


<iframe src="URL">

Syntax Example

<iframe src="demo_iframe.htm">

Attribute Values

Value Description
URL Specifies URL of the page used in the iframe (the iframe content).Possible values:
  • An absolute URL - Is used to navigate to another web site (like longdesc="")
  • A relative URL - Is used to navigate within a site (like longdesc="frame_a.htm")
HTML iframe src Attribute Reviewed by 1000sourcecodes on 04:40 Rating: 5
Powered by Blogger.