Name
<iframe> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<iframe> ... </iframe>
Defines a floating frame within a document with similar placement
tags to <img>
. This element requires a
closing tag. Introduced by Internet Explorer 3.0, inline frames are
now part of the W3C HTML 4.0 Specification. As of this writing,
however, they are only supported by Internet Explorer.
Attributes
align=top|middle|bottom|left|right
Aligns the inline frame on the page within the flow of the text. Left and right alignment allows text to flow around the frame.
frameborder=1|0
Turns on or off the displaying of a 3-D border for the frame. The default is 1, which inserts the border.
height=
number
Specifies the height of the frame in pixels or as a percentage of the window size.
hspace=
number
Used in conjunction with left and right alignment, this attribute specifies the amount of space (in pixels) to hold clear to the left and right of the frame.
marginheight=
number
Specifies the amount of space (in pixels) between the top and bottom edges of the frame and its contents.
marginwidth=
number
Specifies the amount of space (in pixels) between the left and right edges of the frame and its contents.
name=
text
Assigns a name to the inline frame to be referenced by targeted links.
noresize
Prevents users from resizing the inline frame. By default, despite specific frame size settings, users can resize a frame by clicking and dragging its borders.
scrolling=yes|no|auto
Determines whether ...
Get HTML Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.