What is an iframe?
DefinitionAn iframe (inline frame) is an HTML element that embeds another web page or document inside the current page, such as a video player, map, social post or ad.
Also known as Inline frame
The iframe element uses a src attribute that points to the page to embed. Sites use iframes to include content from other services, such as YouTube videos, Google Maps, social media posts, payment forms and ads, and the embedded content runs in its own separate browsing context within the HTML page.
Iframes can slow pages down, so adding loading="lazy" delays offscreen embeds until they are needed, a form of lazy loading. For security, the sandbox and allow attributes limit what embedded content can do, and sites can use a Content Security Policy or the X-Frame-Options header to stop other sites from framing their pages, which protects against clickjacking attacks.
Topic: Web development
Cite this definition
- APA
What is an iframe? (2026, November 22). Glossary. https://glossary.io/iframe/
- MLA
“What Is an iframe?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/iframe/.
- Chicago
“What Is an iframe?” Glossary. Coywolf. November 22, 2026. https://glossary.io/iframe/.
- HTML link
<a href="https://glossary.io/iframe/">What is an iframe?</a>
Published