HTML Iframes
An iframe embeds another browsing context inside a page. Use it only when embedding external content is appropriate, and give it a meaningful title.
Embed a page
<iframe
src="https://example.com/"
title="Example website"
width="600"
height="400"
loading="lazy">
</iframe>
Use iframes thoughtfully
The title describes the embedded content to people using assistive technology. Lazy loading can defer off-screen embeds. Some sites prevent embedding, and third-party content may have privacy or security implications.
For interactive embeds you control, consider whether a sandbox policy can limit the iframe's capabilities. Add only the permissions the embedded content needs.