

{"id":78660,"date":"2020-07-03T09:00:48","date_gmt":"2020-07-03T03:30:48","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=78660"},"modified":"2024-07-24T17:11:59","modified_gmt":"2024-07-24T11:41:59","slug":"html-iframes","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/html-iframes\/","title":{"rendered":"HTML Iframes &#8211; HTML Inline Frame Element"},"content":{"rendered":"<p>HTML iframes or inline frames are used to display different web-pages within the current web-page. It consists of a rectangular region where different web-pages can be displayed or separated into sections. An iframe is defined by the &lt;iframe&gt; element in HTML5.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78974\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg\" alt=\"html iframes\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p>When using iframes, it&#8217;s important to consider their impact on website performance and accessibility. While iframes offer flexibility in embedding content, excessive use can lead to slower page load times and may pose challenges for users with disabilities or on certain devices. Therefore, it&#8217;s recommended to use iframes judiciously and ensure they enhance rather than detract from the user experience.<\/p>\n<p>Moreover, ensuring that the content within iframes is responsive and adapts well to different screen sizes can improve overall usability across devices, contributing to a seamless browsing experience for all users.<\/p>\n<p><strong>HTML IFrame Syntax-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;iframe src=\u201d\u201d&gt;&lt;\/iframe&gt;<\/pre>\n<h2>HTML Iframes Attributes<\/h2>\n<table>\n<tbody>\n<tr>\n<td><b>Name<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">src<\/span><\/td>\n<td><span style=\"font-weight: 400\">This attribute is for specifying the name of the file that should be loaded in the frame.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">srcdoc<\/span><\/td>\n<td><span style=\"font-weight: 400\">\u00a0It is useful to specify the content that should be displayed within an iframe.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">name<\/span><\/td>\n<td><span style=\"font-weight: 400\">This attribute is useful to specify a name to the iframe. This could be necessary while linking multiple frames.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">marginwidth<\/span><\/td>\n<td><span style=\"font-weight: 400\">It is to specify the spacing between the left and right frame borders and the frame content. It is defined in pixels..However, this is not supported in HTML5, the CSS padding property can be used instead.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">marginheight<\/span><\/td>\n<td><span style=\"font-weight: 400\">This attribute is used to specify the spacing between the top and bottom frame borders and the frame content. It is defined in pixels.However, this is not supported in HTML5, the CSS padding property can be used instead.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">height<\/span><\/td>\n<td><span style=\"font-weight: 400\">It specifies the height of the frame.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">width<\/span><\/td>\n<td><span style=\"font-weight: 400\">This attribute is useful to specify the width of the frame.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">scrolling<\/span><\/td>\n<td><span style=\"font-weight: 400\">It controls the scrollbars of the frame. It takes the values, \u2018yes\u2019, \u2018no\u2019, or \u2018auto\u2019.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">sandbox<\/span><\/td>\n<td><span style=\"font-weight: 400\">It defines the constraints regarding the content of iframe.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>For Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n  &lt;title&gt;MyFrame&lt;\/title&gt;\r\n  &lt;style&gt;\r\n    #one{\r\n      position: absolute;\r\n      top: 50px;\r\n      left: 1190px\r\n    }\r\n    #two{\r\n      position: absolute;\r\n      bottom: -150px;\r\n      top: 50px;\r\n    }\r\n    #three{\r\n      position: absolute;\r\n      bottom: -150px;\r\n      left: 316px;\r\n      top: 50px;\r\n    }\r\n\r\nbody {\r\n  margin: 0px;\r\n  font-family: 'segoe ui';\r\n}\r\n  &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h2&gt;&lt;center&gt;My Frames&lt;\/center&gt;&lt;\/h2&gt;\r\n&lt;iframe id=\"one\" srcdoc=\"&lt;center&gt;&lt;h1&gt;&lt;b&gt; Section3&lt;\/center&lt;\/h1&gt;&lt;\/b&gt;\" name=\"header\" height=\"700px\" width=\"320px\"style=\"border:4px solid orange;\"&gt;&lt;\/iframe&gt;\r\n&lt;iframe id=\"two\" srcdoc=\"&lt;center&gt;&lt;h1&gt;&lt;b&gt; Section1&lt;\/center&lt;\/h1&gt;&lt;\/b&gt;\" name=\"navigate\" height=\"700px\" width=\"310px\" style=\"border:4px solid orange;\"&gt;&lt;\/iframe&gt;\r\n&lt;iframe id=\"three\" srcdoc=\"&lt;center&gt;&lt;h1&gt;&lt;b&gt;Section2&lt;\/center&lt;\/h1&gt;&lt;\/b&gt;\" name=\"okay\" height=\"700px\" width=\"870px\" style=\"border:4px solid orange;\"&gt;&lt;\/iframe&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78964\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1.png\" alt=\"HTML Iframes\" width=\"800\" height=\"382\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1.png 800w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1-300x143.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1-150x72.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1-768x367.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image1basic-example-1-520x248.png 520w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<h2>Setting Height and Width in HTML Inline Frames<\/h2>\n<p>The size of HTML iframe is specified using the height and width attributes. The values of these attributes could be either in pixels or percentages. For example,<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt; \r\n&lt;html&gt;   \r\n&lt;body&gt;   \r\n    &lt;p&gt;Content here&lt;\/p&gt;  \r\n    &lt;iframe src=\"https:\/\/data-flair.training\/blogs\/\" height=\"400px\" width=\"400px\"&gt;&lt;\/iframe&gt;   \r\n&lt;\/body&gt;   \r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image2setting-height-and-width.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78965\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image2setting-height-and-width.png\" alt=\"setting height and width in HTML\" width=\"613\" height=\"621\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image2setting-height-and-width.png 613w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image2setting-height-and-width-296x300.png 296w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image2setting-height-and-width-148x150.png 148w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image2setting-height-and-width-520x527.png 520w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/a><\/p>\n<h2>Removing Border in HTML Inline Frames<\/h2>\n<p>The CSS border property is to remove the border of an iframe. By default, an iframe has a border.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt; \r\n&lt;html&gt;   \r\n&lt;body&gt;   \r\n    &lt;p&gt;Content here&lt;\/p&gt;  \r\n    &lt;iframe src=\"https:\/\/data-flair.training\/blogs\/\" height=\"400\" width=\"400\" style=\"border:none;\"&gt;&lt;\/iframe&gt;   \r\n&lt;\/body&gt;   \r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-3removing-border.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78966\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-3removing-border.png\" alt=\"removing border in HTML\" width=\"552\" height=\"601\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-3removing-border.png 552w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-3removing-border-276x300.png 276w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-3removing-border-138x150.png 138w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-3removing-border-520x566.png 520w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<h2>Styling Border in HTML Iframe<\/h2>\n<p>We can style the border of the iframe using CSS.<\/p>\n<p><strong>Code-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt; \r\n&lt;html&gt;   \r\n&lt;body&gt;   \r\n    &lt;p&gt;Content here&lt;\/p&gt;  \r\n    &lt;iframe src=\"https:\/\/data-flair.training\/blogs\/\" height=\"400\" width=\"400\" style=\"border:4px solid red\"&gt;&lt;\/iframe&gt;   \r\n&lt;\/body&gt;   \r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image4styling-border.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78967\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image4styling-border.png\" alt=\"styling border in Iframes in HTML\" width=\"637\" height=\"619\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image4styling-border.png 637w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image4styling-border-300x292.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image4styling-border-150x146.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image4styling-border-520x505.png 520w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<h2>Target for a link<\/h2>\n<p>An iframe can be the target of a specific link. The name of the iframe must be specified as the target of the link.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt; \r\n&lt;html&gt;   \r\n&lt;body&gt; \r\n     &lt;p&gt;Click the link in the text&lt;\/p&gt; \r\n    &lt;iframe height=\"300\" width=\"350\" src=\"https:\/\/data-flair.training\/blogs\/\"name=\"frame_a\"&gt;&lt;\/iframe&gt; \r\n    &lt;p&gt;&lt;a href= \"https:\/\/data-flair.training\/hadoop-spark-developer-course\/\" target=\"frame_a\"&gt;DataFlair&lt;\/a&gt;&lt;\/p&gt; \r\n&lt;\/body&gt; \r\n  \r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Output-<\/strong><br \/>\nBefore clicking the link-<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-5beforetarget-for-a-link.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78968\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-5beforetarget-for-a-link.png\" alt=\"html target for a link\" width=\"440\" height=\"520\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-5beforetarget-for-a-link.png 440w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-5beforetarget-for-a-link-254x300.png 254w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-5beforetarget-for-a-link-127x150.png 127w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/a><\/p>\n<p>After clicking the link-<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-6aftertarget-for-a-link.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78969\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-6aftertarget-for-a-link.png\" alt=\"html iframes target for a link\" width=\"503\" height=\"526\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-6aftertarget-for-a-link.png 503w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-6aftertarget-for-a-link-287x300.png 287w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/Image-6aftertarget-for-a-link-143x150.png 143w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/p>\n<h2>Embed Youtube Videos on Iframes in HTML<\/h2>\n<p>We can embed Youtube Video on iframes by following these steps-<\/p>\n<ul>\n<li>Go to the youtube video you wish to embed.<\/li>\n<li>Click on share.<\/li>\n<li>Click on the \u2018embed\u2019 option.<\/li>\n<li>Copy the HTML code on to your HTML document.<\/li>\n<li>Set the width and height of the iframe as per the preference.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/UZRkpGk943Q\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen&gt;&lt;\/iframe&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image7embed-youtube-video.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78970\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image7embed-youtube-video.png\" alt=\"html embed youtube video\" width=\"727\" height=\"423\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image7embed-youtube-video.png 727w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image7embed-youtube-video-300x175.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image7embed-youtube-video-150x87.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/image7embed-youtube-video-520x303.png 520w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/a><\/p>\n<h2>Supported Browsers<\/h2>\n<ul>\n<li>Chrome<\/li>\n<li>Internet Explorer<\/li>\n<li>Firefox<\/li>\n<li>Safari<\/li>\n<li>Opera<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<p>Iframes in HTML are useful to embed different web pages on a single web page. They are defined using the &lt;iframe&gt; tag. In this article, we saw the common attributes of inline frames and their manipulation using CSS. We\u2019ve also looked at the linking of iframes with links defined by the anchor element.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML iframes or inline frames are used to display different web-pages within the current web-page. It consists of a rectangular region where different web-pages can be displayed or separated into sections. An iframe is&#46;&#46;&#46;<\/p>\n","protected":false},"author":10,"featured_media":78974,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22400],"tags":[22501,22503,22502],"class_list":["post-78660","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html","tag-html-iframes","tag-html-inline-frame-element","tag-html-inline-frames"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML Iframes - HTML Inline Frame Element - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what are inline frames or Iframes in HTML with synatx and example. See various Iframes attributes &amp; their usage with examples for better understanding\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/html-iframes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Iframes - HTML Inline Frame Element - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what are inline frames or Iframes in HTML with synatx and example. See various Iframes attributes &amp; their usage with examples for better understanding\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/html-iframes\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-03T03:30:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-24T11:41:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Iframes - HTML Inline Frame Element - DataFlair","description":"Learn what are inline frames or Iframes in HTML with synatx and example. See various Iframes attributes & their usage with examples for better understanding","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/html-iframes\/","og_locale":"en_US","og_type":"article","og_title":"HTML Iframes - HTML Inline Frame Element - DataFlair","og_description":"Learn what are inline frames or Iframes in HTML with synatx and example. See various Iframes attributes & their usage with examples for better understanding","og_url":"https:\/\/data-flair.training\/blogs\/html-iframes\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-07-03T03:30:48+00:00","article_modified_time":"2024-07-24T11:41:59+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/a90b082e16aa38d207212d22b0581f33"},"headline":"HTML Iframes &#8211; HTML Inline Frame Element","datePublished":"2020-07-03T03:30:48+00:00","dateModified":"2024-07-24T11:41:59+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/"},"wordCount":569,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg","keywords":["HTML Iframes","HTML Inline frame element","HTML Inline frames"],"articleSection":["HTML Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/html-iframes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/","url":"https:\/\/data-flair.training\/blogs\/html-iframes\/","name":"HTML Iframes - HTML Inline Frame Element - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg","datePublished":"2020-07-03T03:30:48+00:00","dateModified":"2024-07-24T11:41:59+00:00","description":"Learn what are inline frames or Iframes in HTML with synatx and example. See various Iframes attributes & their usage with examples for better understanding","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/html-iframes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/html-iframes-df.jpg","width":1200,"height":628,"caption":"html iframes"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/html-iframes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"HTML Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/html\/"},{"@type":"ListItem","position":3,"name":"HTML Iframes &#8211; HTML Inline Frame Element"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/a90b082e16aa38d207212d22b0581f33","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd6de0d647a0185cd6faf264e4ba860b0d85d08d7070766f9cd41bea5bb0b227?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team is passionate about delivering top-notch tutorials and resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With expertise in the tech industry, we simplify complex topics to help learners excel. Stay updated with our latest insights.","url":"https:\/\/data-flair.training\/blogs\/author\/dfadteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/78660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=78660"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/78660\/revisions"}],"predecessor-version":[{"id":142901,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/78660\/revisions\/142901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/78974"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=78660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=78660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=78660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}