HTML5 Please

iframe[sandbox]

Safe to usehtml

This attribute enables fine-grained control over the capabilities of a document housed within an iFrame.

Verdict
Safe to use
Category
HTML features
Browser support
Can I Use
Works in
IE10+

Should you use iframe[sandbox] in 2026?

Browser support is not nearly high enough to consider this measure alone sufficient for sanitizing output. Use this attribute as part of a defense-in-depth strategy.

Also see [more about implementing iframe[sandbox]](https://bocoup.com/blog/third-party-javascript-development-future#iframe-sandbox) responsibly on Bocoup's blog.