IFRAME
The iframe element introduces a new nested browsing context.
SYNTAX
HTML
<iframe attribute-name="attribute-value"></iframe>
ATTRIBUTES
NAME | VALUE | DESCRIPTION |
---|---|---|
height | non-negative integer | Vertical dimension |
name | browsing-context name | Valid browsing context name |
sandbox | sandbox allow list | Instructs the UA to enable a set of extra restrictions on any content hosted by the iframe |
seamless | seamless | empty | Instructs the UA that the iframe element's browsing context is to be rendered in a manner that makes it appear to be part of the containing document (seamlessly included in the parent document) |
src | URI | URL for the audio stream |
srcdoc | iframe srcdoc | Content of the page that the nested browsing context is to contain |
width | non-negative integer | Horizontal dimension |
CSS
iframe {
border: 2px inset;
}