Horje

How to add HTML <iframe> allow attribute

The allow attribute specifies a feature policy to define what permissions are available to an <iframe>.

Applicable Elements

The allow Attribute can be used with the following elements:

HTML <iframe> allow Attribute

The <iframe> tag represents a nested browsing context and is used to embed an HTML document in your current HTML document.

The allow attribute can be used with the <iframe> attribute to specify a permissions policy to determine what features are available to it when it is initialized. I.e., permitting the <iframe> to access the computer’s camera or microphone.

index.html
Example: HTML
<iframe src="https://horje.com/learn/119/how-to-create-html-em-elements" allow="camera 'none'; microphone 'none'"></iframe>

Output should be:

How to add HTML <iframe> allow attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin