Name
<iframe> — NN 6 MSIE 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<iframe> ... </iframe>
Defines an inline (floating) frame within a document with similar
placement tags to <img>. This element
requires a closing tag. Any content contained within the
<iframe> tags will display on browsers that
do not support inline frames.
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 inline frame.
-
frameborder=1|0 Turns on or off the displaying of a 3-D border for the inline frame. The default is 1, which displays the border.
-
height=number Specifies the height of the inline frame in pixels or as a percentage of the window size. Internet Explorer and Navigator use a default height of 150 pixels.
-
hspace=number Nonstandard. 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 inline frame.
-
longdesc=url Specifies a link to a document containing a long description of the inline frame and its contents. This addition to the HTML 4.01 specification may be useful for nonvisual web browsers.
-
marginheight=number Specifies the amount of space (in pixels) between the top and bottom edges of the inline frame and its contents.
-
marginwidth=number Specifies the amount of space (in pixels) between the left and right edges of the inline frame and its contents.
-
name=text
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