HTML Attributes

HTML allowfullscreen attribute

Permits fullscreen requests from an iframe subject to permissions policy and user-agent rules. Prefer an appropriate allow policy for new code. Applicable elements include: <iframe>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off.

Formal Syntax & Structure

html syntaxhtml
allowfullscreen

Parameters & Attributes

NameTypeDescription
allowfullscreenbooleanPermits fullscreen requests from an iframe subject to permissions policy and user-agent rules. Prefer an appropriate allow policy for new code.

Working Example

Example Snippethtml
<iframe src="about:blank" title="Demo" allowfullscreen></iframe>
HTML Reference