iframe

Form

<iframe> ... </iframe>

Attributes

attribute default description
id none specifies the unique ID
class none specifies the style class sheet
style none specifies the style sheet
name none specifies the frame name
src none specifies the URL of the document to be displayed in the inline frame
frameborder none specifies whether or not to display frame borders
marginwidth browser dependency specifies the left and right margins
marginheight browser dependency specifies the top and bottom margins
scrolling auto specifies scrollbar action (yes, no, auto)
align none specifies the alignment
width none specifies the width
height none specifies the height

Support

HTML 4.01 [TF], XHTML 1.0 [TF]
Microsoft (MSDN)
[IE3 or later][Firefox 1 or later][Safari 1 or later][Opera 6? or later][Netscape 6 or later]

Explanation

The iframe tag specifies an inline frame.

Related Tags

frame, frameset, noframes

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<iframe src="contents.html">Please see with the browser complying with the inline frame.</iframe>
</body>
</html>