Name
iframe
Synopsis
<iframe> . . . </iframe>
Defines an inline frame that is used for embedding an HTML document in a separate browsing context (window) nested within the parent document. An inline frame displays the content of an external document and may display scrolling devices if the content doesn’t fit in the specified window area. Inline frames may be positioned similarly to images.
Usage
- Categories:
Flow content, phrasing content, embedded content, interactive content, palpable content
- Permitted contexts:
Where embedded content is expected
- Permitted content:
Text content. If using an algorithm, the resulting output must be a list of nodes without parsing errors or scripts and may only contain phrasing content.
- Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
allowfullscreenNot in HTML 4.01. Indicates that the objects in the
iframeare allowed to userequestFullScreen().height="number"Specifies the height of the inline frame in pixels or as a percentage of the window size.
name="text"Assigns a name to the inline frame to be referenced by targeted links.
sandbox="allow-forms | allow-pointer-lock | allow-popups | allow-same-origin | allow-scripts | allow-top-navigation"Not in HTML 4.01. Used to enable scripts, pop ups, plug-ins, and form submission in embedded documents.
seamless(seamless="seamless"in XHTML)Not in HTML 4.01. Makes the browser treat the embedded document as though it were part of the parent document for purposes of link targets, document structure, and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access