Frames
Frames allow a visual HTML Browser window to be split into segments, each of which can show a different document. This can lower bandwidth use, as repeating parts of a layout can be used in one frame, while variable content is displayed in another. This comes at a significant usability cost, especially in non-visual user agents. Because of this cost, frames (excluding the iframe
element) are only allowed in HTML 4.01 Frameset.
In HTML 4.01, a document may contain a head
and a body
or a head
and a frameset
, but not both a body
and a frameset
. However, iframe can be used in a normal document body.
- Contains the frameset. The frames layout is given by comma separated lists in the
rows
andcols
attributes. - Standardized in HTML 4.0 Frameset, obsolete in HTML 5.
or
- Delimits a single frame, or region, within the
frameset
. A separate document linked with thesrc
attribute appears inside. - Standardized in HTML 4.0 Frameset, obsolete in HTML 5.
... - Contains normal HTML content for user agents that don't support frames.
- Standardized in HTML 4.0 Transitional, obsolete in HTML 5.
- An inline frame places another HTML document in a frame. Unlike an
object
element, an inline frame can be the "target" frame for links defined by other elements and it can be selected by the user agent as the focus for printing, viewing its source, etc. - The content of the element is used as alternative text to be displayed if the browser does not support iframes.
- First introduced by Microsoft Internet Explorer in 1997, standardized in HTML 4.0 Transitional, allowed in HTML 5.
Read more about this topic: HTML Element
Famous quotes containing the word frames:
“... though it is by no means requisite that the American women should emulate the men in the pursuit of the whale, the felling of the forest, or the shooting of wild turkeys, they might, with advantage, be taught in early youth to excel in the race, to hit a mark, to swim, and in short to use every exercise which could impart vigor to their frames and independence to their minds.”
—Frances Wright (17951852)
“The bird would cease and be as other birds
But that he knows in singing not to sing.
The question that he frames in all but words
Is what to make of a diminished thing.”
—Robert Frost (18741963)
“In frames as large as rooms that face all ways
And block the ends of streets with giant loaves,
Screen graves with custard, cover slums with praise
Of motor-oil and cuts of salmon, shine
Perpetually these sharply-pictured groves
Of how life should be.”
—Philip Larkin (19221986)