---
title: "What is an iframe?"
term: "iframe"
description: "An 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."
url: "https://glossary.io/iframe/"
published: "2026-11-22T20:37:33.446Z"
updated: "2026-11-22T20:37:33.446Z"
aliases:
  - "Inline frame"
topics:
  - "Web development"
wikidata: "https://www.wikidata.org/wiki/Q179526"
---

# What is an iframe?

**Definition:** An 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](https://glossary.io/html/) page.

Iframes can slow pages down, so adding loading="lazy" delays offscreen embeds until they are needed, a form of [lazy loading](https://glossary.io/lazy-loading/). For security, the sandbox and allow attributes limit what embedded content can do, and sites can use a [Content Security Policy](https://glossary.io/content-security-policy/) or the X-Frame-Options header to stop other sites from framing their pages, which protects against clickjacking attacks.

## Related terms

- [lazy loading](https://glossary.io/lazy-loading/)
- [Content Security Policy](https://glossary.io/content-security-policy/)
- [frameset](https://glossary.io/frameset/)
- [HTML](https://glossary.io/html/)

**Topic:** [Web development](https://glossary.io/topics/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/.

Published November 22, 2026.
