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

!doctype

a

abbr

address

area

article

aside

audio

b

base

bdi

bdo

blockquote

body

br

button

canvas

caption

cite

code

col

colgroup

data

datalist

dd

del

details

dfn

dialog

div

dl

dt

em

embed

fieldset

figcaption

figure

footer

form

h1

h2

h3

h4

h5

h6

head

header

hgroup

hr

html

i

img

input

ins

kbd

label

legend

li

link

main

map

mark

menu

meta

meter

nav

noscript

object

ol

optgroup

option

output

p

param

picture

pre

progress

q

rb

rp

rt

rtc

ruby

s

samp

script

search

section

select

slot

small

source

span

strong

style

sub

summary

sup

table

tbody

td

template

textarea

tfoot

th

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu