HTML <iframe> Tag
Description:
The <iframe> tag defines an inline frame that contains another document.
Specific Attributes:
| Attribute | Definition |
| name | Assigns a name to a frame. This is useful for loading contents into one frame from another. |
| longdesc | A long description - this can elaborate on a shorter description specified with the title attribute. |
| width | Specifies the width of the inline frame. |
| height | Specifies the height of the inline frame. |
Other Attributes:
| Attribute | Definition |
| class | Specifies a classname for an element. |
| id | Specifies a unique id for an element. |
| title | Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip"). |
| style | Specifies an inline style for an element. |
| src | Location of the frame contents (for example, the HTML page to be loaded into the frame). |
| scrolling | Whether the frame should be scrollable or not (i.e.
should scrollbars appear). Possible values:
|
| frameborder | Whether the frame should have a border or not. Possible values:
|
| marginwidth | Specifies the margin, in pixels, between the frame's contents and it's left and right margins. |
| marginheight | Specifies the margin, in pixels, between the frame's contents and it's top and bottom margins. |
| align | Specifies the alignment.
|
Example Code:
<iframe id="I1" name="I1" src="image/sunset.jpg">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>