HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

iframe

Description

The iframe element for HTML introduces a new nested browsing context.

Syntax

HTML

<iframe attribute-name="attribute-value"></iframe>

Attributes

Global

NameValueDescription
heightnon-negative integerVertical dimension
namebrowsing-context nameValid browsing context name
sandboxsandbox allow listInstructs the UA to enable a set of extra restrictions on any content hosted by the iframe
seamlessseamless | emptyInstructs 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)
srcURIURL for the audio stream
srcdociframe srcdocContent of the page that the nested browsing context is to contain
widthnon-negative integerHorizontal dimension

CSS

iframe
{
    border: 2px inset;
}

Examples

1 · height

2 · name

3 · sandbox

4 · seamless

5 · src

6 · srcdoc

7 · width

8 · Content

9 · CSS · border

10 · CSS · no border