mozilla

Revision 290196 of <frameset>

  • Revision slug: HTML/Element/frameset
  • Revision title: frameset
  • Revision id: 290196
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

Summary

<frameset> is an HTML element which is used to contain {{ HTMLElement("frame") }} elements.

Note: Because the use of frames is now discouraged in favor of using {{ HTMLElement("iframe") }}, this element is not typically used by modern web sites.

Attributes

Like all other HTML elements, this element supports the global attributes.

{{ htmlattrdef("cols") }}
This attribute is specify the number and size of horizontal spaces in a frameset.
{{ htmlattrdef("rows") }}
This attribute is specify the number and size of vertical spaces in a frameset.

Example

<frameset cols="50%,50%">
  <frame src="https://developer.mozilla.org/en/HTML/Element/frameset" />
  <frame src="https://developer.mozilla.org/en/HTML/Element/frame" />
</frameset>

See also

  • {{HTMLElement("frame")}}
  • {{HTMLElement("iframe")}}

Revision Source

<h2 id="Summary">Summary</h2>
<p><code>&lt;frameset&gt;</code> is an HTML element which is used to contain {{ HTMLElement("frame") }} elements.</p>
<div class="note">
  <strong>Note:</strong> Because the use of frames is now discouraged in favor of using {{ HTMLElement("iframe") }}, this element is not typically used by modern web sites.</div>
<h2 id="Attributes">Attributes</h2>
<p>Like all other HTML elements, this element supports the <a href="/en-US/HTML/Global_attributes" title="en-US/HTML/Global attributes">global attributes</a>.</p>
<dl>
  <dt>
    {{ htmlattrdef("cols") }}</dt>
  <dd>
    This attribute is specify the number and size of horizontal spaces in a frameset.</dd>
  <dt>
    {{ htmlattrdef("rows") }}</dt>
  <dd>
    This attribute is specify the number and size of vertical spaces in a frameset.</dd>
</dl>

<h2 id="Example">Example</h2>
<pre class="brush:html">&lt;frameset cols="50%,50%"&gt;
  &lt;frame src="https://developer.mozilla.org/en/HTML/Element/frameset" /&gt;
  &lt;frame src="https://developer.mozilla.org/en/HTML/Element/frame" /&gt;
&lt;/frameset&gt;</pre>

<h2 id="See_also">See also</h2>
<ul>
<li>{{HTMLElement("frame")}}</li>
<li>{{HTMLElement("iframe")}}</li>
</ul>
Revert to this revision