VOOZH about

URL: https://www.geeksforgeeks.org/html/html-iframe-src-attribute/

⇱ HTML <iframe> src Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <iframe> src Attribute

Last Updated : 27 May, 2026

The HTML <iframe> src attribute is used to specify the URL of the document that are embedded to the <iframe> element. 

Syntax: 

<iframe src="URL">

Attribute Values: It contains single value URL which specifies the URL of the document that is embedded to the iframe. There are two types of URL link which are listed below:

  • Absolute URL: It points to another webpage.
  • Relative URL: It points to other files of the same web page.

Below example illustrates the <iframe> src attribute in HTML: 

Comment
Article Tags: