mozilla

Revision 53163 of <frameset>

  • Revision slug: HTML/Element/frameset
  • Revision title: frameset
  • Revision id: 53163
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment copy edit; 14 words added, 24 words removed

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>

Revision Source

<h3 id="Summary">Summary</h3>
<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>
<h3 id="Attributes">Attributes</h3>
<p>Like all other HTML elements, this element supports the <a href="/en/HTML/Global_attributes" title="en/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>
<h3 id="Example">Example</h3>
<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>
Revert to this revision