Skip to main content

8 docs tagged with "iframe"

View all tags

HTML Embedded Content

Start learning HTML embedded content: iframe, embed, object, SVG, canvas, and maps. See what each element is for, how they differ, how to choose between them, and why third-party content needs security care, with a live sampler of four embedding methods.

HTML Iframe Element

Learn the HTML iframe element: embedding another page with src and srcdoc, titles for accessibility, size and aspect-ratio, lazy loading, the sandbox attribute, allow and referrerpolicy, why some sites refuse to be framed, and talking to a frame with postMessage, with live demos.

HTML Maps

Learn how to add maps to an HTML page: map links, static images, iframe embeds and interactive libraries, building an OpenStreetMap embed from coordinates, click-to-load for privacy, text alternatives with address and directions, keys and terms, accessibility, responsive sizing, and common mistakes, with live demos.

HTML Security: Keeping Pages and Visitors Safe

Start learning HTML security: where web page risks come from, which HTML features protect visitors (escaping, rel noopener and noreferrer, iframe sandbox, CSP, https), and which protections live on the server. Includes an escaping lab and a defence matcher.

iFrame Security

Learn the two sides of iframe security: embedding other pages safely (trust, sandbox, allow, referrer policy, frame-src) and stopping others from embedding yours (clickjacking, frame-ancestors). Includes a clickjacking lab, a postMessage origin lab, and an embed checker.

Native Lazy Loading in Modern HTML

Learn native lazy loading as part of modern HTML: the loading attribute on images and iframes, what it can and cannot do, why you should never lazy-load your main image, how to avoid layout shift, and how to check your markup. Includes a live markup checker and a lazy or eager matcher.

The sandbox Attribute

Learn how the iframe sandbox attribute works: start with every power removed, add back only what an embed needs, and avoid the allow-scripts plus allow-same-origin trap. Includes a permission lab and a scenario picker.

Third-Party Content Security

Learn how to keep a page safe when it embeds content you did not write: the risks of scripts, iframes and widgets, Content-Security-Policy, Subresource Integrity, iframe sandbox, Permissions-Policy, referrer and link rules, consent and privacy, click-to-load, auditing, and incident planning, with live demos.