HTML <frame> Tag
This tag is not supported in HTML5
Description
The <frame> HTML element defines the properties of a single frame into which the browser window is divided. This element should be located in the <frameset> container, which also determines the way the page is laid out in separate areas. An independent web page defined using the src attribute is loaded into each of these areas. Although the <frame> element does not have required attributes, it is recommended that each frame be given its name through the name attribute. This is especially important if you need to load a document into another using a link from one frame.
Properties
- Permitted Parents
- <frameset>
- Content
- None. It is an empty element.
- Start/End Tags
- Start tag: required, End tag: forbidden
Example
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. |
| src | Location of the frame contents (for example, the HTML page to be loaded into the frame). |
| noresize | Specifies whether the frame is resizable or not (i.e. whether the user can resize the frame or not). |
| 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. |
| 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. |
Global Attributes
None
Event Attributes
None
Browser Support
The following information will show you the current browser support for the HTML <frame> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
Browser support for this tag is currently unknown.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 5th December 2019
