Please visit our sponsors !
The <iframe> tag
Definition and Usage
The iframe element creates an inline frame that contains another document.
Example
| XHTML |
Output |
<iframe
src ="default.asp">
</iframe> |
|
Optional Attributes
DTD indicates in which XHTML 1.0 DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| align |
left
right
top
middle
bottom |
Specifies how to align the Iframe according to the
surrounding text |
TF |
| frameborder |
1
0 |
Specifies whether or not to display a frame border |
TF |
| height |
pixels
% |
Defines the height of the Iframe |
TF |
| longdesc |
URL |
A URL to a long description of the frame contents |
TF |
| marginheight |
pixels |
Defines the top and bottom margins of the Iframe |
TF |
| marginwidth |
pixels |
Defines the left and right margins of the Iframe |
TF |
| name |
frame_name |
Specifies a unique name of the Iframe (to use in scripts) |
TF |
| scrolling |
yes
no
auto |
Define scroll bars |
TF |
| src |
URL |
The URL of the document to show in the Iframe |
TF |
| width |
pixels
% |
Defines the width of the Iframe |
TF |
Standard Attributes
For a full description, go to Standard
Attributes.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|