w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



iframe src attribute

The src attribute on the iframe element:

Examples

<iframeattribute="value(s)">...<⁄iframe>Examples
6.src=URL<iframe src="http://any_site.com/file.php"> ... <⁄iframe>
<iframe src="folder/file.php"> ... <⁄iframe>
<iframe src="file_to_embed.php"> ... <⁄iframe>

Video demonstration iframe src attribute

HTML5 iframe src attribute Tutorial

min video details
00:00 video tutorial: scr attribute on iframe element
00:05 empty frame
00:10 we currently have an empty frame on page
00:13 we can load the index2.php document inside this iframe through src attribute
00:25 since our document is bigger than iframe's dimensions, scrollbars will display
00:31 src attribute allows you to specify the URL of the document to be contained by the iframe
00:47 index2.php document has been loaded inside the iframe from index.php file
00:56 the src attribute can hold both absolute and relative URLs
iframe intro iframe browser display iframe parents - children iframe src vs srcdoc iframe syntax iframe width, height attributesiframe name attributeiframe sandbox attributeiframe seamless attributeiframe srcdoc attribute