<IFRAME>
The IFRAME element allows you to embed a frame into the content of your web page.
Instead of splitting the main browser window horizontally or vertically, this
type of frame will appear just like an embedded TABLE would. You can position
and align the frame however you like.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
NAME |
A name to assign to the frame which will be used when referencing this element in the Document Object Model (DOM) using client-side scripting (such as Javascript) |
SRC |
URI which indicates the resource where content will be retrieved to fill the frame element |
FRAMEBORDER |
Should a thin border be drawn around the outside of the frame? 0 means no and 1 means yes |
MARGINWIDTH |
Width of the left and right margin in pixels |
MARGINHEIGHT |
Height of the top and bottom margin in pixels |
SCROLLING |
Indicates the type of scrolling which is allowed by the frame. Valid values for this attribute are: yes, no or auto |
ALIGN |
Specifies the horizontal alignment of this frame with respect to it's containing element |
WIDTH |
Overall width of the frame as the number of pixels or as a percentage of the total available width |
HEIGHT |
Overall height of the frame as the number of pixels or as a percentage of the total available height |
LONGDESC |
This is a URI to a resource containing a long description of the frame |
|
Example
<IFRAME SRC="http://www.google.com/" WIDTH="400" HEIGHT="500"
SCROLLING="auto" FRAMEBORDER="1">
[Your user agent does not support frames or is currently configured
not to display frames. However, you may visit
<A href="http://www.google.com/">http://www.google.com</A>]
</IFRAME>
Renders As:
Compatibility
HTML 4.01
|