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|rightAligns 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|0Turns on or off the displaying of a 3-D border for the frame. The default is 1, which inserts the border.
height=numberSpecifies the height of the frame in pixels or as a percentage of the window size.
hspace=numberUsed 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=numberSpecifies the amount of space (in pixels) between the top and bottom edges of the frame and its contents.
marginwidth=numberSpecifies the amount of space (in pixels) between the left and right edges of the frame and its contents.
name=textAssigns a name to the inline frame to be referenced by targeted links.
noresizePrevents 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|autoDetermines whether ...
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