The allow
attribute specifies a feature policy to define what permissions are available to an <iframe>
.
The allow
Attribute can be used with the following elements:
<iframe>
<iframe>
allow
AttributeThe <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.
Example:
HTML
<iframe src="https://horje.com/learn/119/how-to-create-html-em-elements" allow="camera 'none'; microphone 'none'"></iframe>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |