{"id":144,"date":"2026-04-13T07:04:03","date_gmt":"2026-04-13T07:04:03","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=144"},"modified":"2026-04-27T16:54:22","modified_gmt":"2026-04-27T16:54:22","slug":"iframes","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/","title":{"rendered":"iFrames"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">An iframe in HTML is used to embed another webpage or external content inside your current webpage. It allows you to display content from different sources within a single page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is an iFrame<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The iframe stands for inline frame. It creates a frame within your webpage that can load another HTML page, website, video, or map.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>iframe Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>&lt;iframe&gt;<\/code> tag is used to embed external content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Basic Example<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;iframe src=&#8221;https:\/\/example.com&#8221;&gt;&lt;\/iframe&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will display the content of the given website inside your page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Common Uses of iFrames<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Embedding YouTube videos<br>Displaying Google Maps<br>Showing external websites or tools<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Important Attributes<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">src defines the URL of the page to display.<br>width and height control the size of the frame.<br>allowfullscreen allows full screen mode for videos.<br>loading=&#8221;lazy&#8221; improves performance by loading content when needed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example with Attributes<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;iframe src=&#8221;https:\/\/example.com&#8221; width=&#8221;600&#8243; height=&#8221;400&#8243;&gt;&lt;\/iframe&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Advantages of iFrames<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">They allow easy integration of external content.<br>They save time because you do not need to build everything from scratch.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limitations of iFrames<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some websites block iframe embedding for security reasons.<br>Too many iframes can slow down your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">iFrames are used to embed external content inside a webpage. They are useful for adding videos, maps, and other resources easily.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/html\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">HTML Intermediate > Multimedia &#038; Embeds > iFrames<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777308838394\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":43,"template":"","class_list":["post-144","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iFrames - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML iframe to embed webpages, videos, and maps. Use src, width, height, and lazy loading for better performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iFrames - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML iframe to embed webpages, videos, and maps. Use src, width, height, and lazy loading for better performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T16:54:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/iframes\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/iframes\\\/\",\"name\":\"iFrames - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-13T07:04:03+00:00\",\"dateModified\":\"2026-04-27T16:54:22+00:00\",\"description\":\"Learn HTML iframe to embed webpages, videos, and maps. Use src, width, height, and lazy loading for better performance.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/iframes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/iframes\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/iframes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > Multimedia & Embeds > iFrames\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\",\"name\":\"HTML learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/html\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iFrames - HTML learning mastery","description":"Learn HTML iframe to embed webpages, videos, and maps. Use src, width, height, and lazy loading for better performance.","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:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/","og_locale":"en_US","og_type":"article","og_title":"iFrames - HTML learning mastery","og_description":"Learn HTML iframe to embed webpages, videos, and maps. Use src, width, height, and lazy loading for better performance.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T16:54:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/","name":"iFrames - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-13T07:04:03+00:00","dateModified":"2026-04-27T16:54:22+00:00","description":"Learn HTML iframe to embed webpages, videos, and maps. Use src, width, height, and lazy loading for better performance.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/iframes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > Multimedia & Embeds > iFrames"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/html\/#website","url":"https:\/\/gigz.pk\/html\/","name":"HTML learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/html\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/media?parent=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}