Custom Search
- Home
- HTML
- CSS
- JavaScript/jQuery
- Inkscape
- GIMP
- Blender
- Articles
- Disclosure
- Contact
HTML
- HTML5 Tutorials
- HTML/XHTML Tutorials
- DTD Info/Templates
HTML Tags
- <a>
- <abbr>
- <acronym>
- <address>
- <applet>
- <area>
- <b>
- <base>
- <basefont>
- <bdo>
- <big>
- <blockquote>
- <body>
- <br>
- <button>
- <caption>
- <center>
- <cite>
- <code>
- <col>
- <colgroup>
- <dd>
- <del>
- <dfn>
- <dir>
- <div>
- <dl>
- <dt>
- <em>
- <fieldset>
- <font>
- <form>
- <frame>
- <frameset>
- <h1>
- <h2>
- <h3>
- <h4>
- <h5>
- <h6>
- <head>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <isindex>
- <kbd>
- <label>
- <legend>
- <li>
- <link>
- <map>
- <menu>
- <meta>
- <noframes>
- <noscript>
- <object>
- <ol>
- <optgroup>
- <option>
- <p>
- <param>
- <pre>
- <q>
- <s>
- <samp>
- <script>
- <select>
- <small>
- <span>
- <strike>
- <strong>
- <style>
- <sub>
- <sup>
- <table>
- <tbody>
- <td>
- <textarea>
- <tfoot>
- <th>
- <thead>
- <title>
- <tr>
- <tt>
- <u>
- <ul>
- <var>
HTML 4.01 and XHTML 1.0 Reference: <frameset> TagThe <frameset> tag is allowed in DTD Frameset documents but not Transitional or Strict documents.
HTML <frameset> Tag Syntax | This element uses separate opening and closing tags. <frameset>...</frameset> |
Usage | The <frameset> tag can be used to divide the display into multiple frames. Each of the separate frames can display its own web page. The <frame> tag is used to specify the URL of the web page that will be displayed in a frame. One <frame> tag is used for each URL. For a typical HTML document, the contents of the body section are displayed using a browser. In a frameset document, the <frameset> tag replaces the <body> tag. Therefore, a frameset document generally does not have content that will be displayed. Instead it specifies how content, from multiple other sources, will be displayed and it specifies the sources of the content. There is an exception where a frameset document does have content that will be displayed. The exception is when the <noframes> tag is used. The content between the opening and closing <noframes> tags will be displayed in the event that the browser does not support frames.HTML <frameset> tag example.<html> <head> <title>HTML Test</title> </head> <frameset cols="40%,60%"> <frame src="../html/div_tag/" title="sample frame"> <frame src="../html/span_tag/" title="sample frame"> </frameset> <noframes></noframes> </html>XHTML <frameset> tag example.<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>HTML Test</title> </head> <frameset cols="40%,60%"> <frame src="../html/div_tag/" title="sample frame" /> <frame src="../html/span_tag/" title="sample frame" /> </frameset> <noframes></noframes> </html> |
Content Model | The <frameset> element can contain the following tags between its opening and closing tags.<frame> <frameset> <noframes> |
<frameset> Tag Attribute Summary Required | Tag Specific | Core | Focus | Events | Language |
cols onload onunload rows | id class style title |
<frameset> Tag Attributes Attribute | Description |
cols | The cols attribute specifies the number of columns and the width of each column. The value for this attribute is a comma separated list of widths. Each value in the list can be in pixels, a percentage (number followed by %), or a relative value of the remaining space (integer followed by *). When using a relative value, "*" is the same as "1*".HTML <frameset> tag example using the cols attribute.<frameset cols="100,30%,*"> <frame src="../html/form_tag/" title="sample frame"> <frame src="../html/div_tag/" title="sample frame"> <frame src="../html/span_tag/" title="sample frame"> </frameset> <noframes></noframes>XHTML <frameset> tag example using the cols attribute.<frameset cols="100,30%,*"> <frame src="../html/form_tag/" title="sample frame" /> <frame src="../html/div_tag/" title="sample frame" /> <frame src="../html/span_tag/" title="sample frame" /> </frameset> <noframes></noframes> |
---|
onload | The onload attribute is used to specify a script to be be run when the frames have been loaded. |
---|
onunload | The onunload attribute is used to specify a script to be be run when the web page has been removed. |
---|
rows | The rows attribute specifies the number of rows and the height of each row. The value for this attribute is a comma separated list of heights. Each value in the list can be in pixels, a percentage (number followed by %), or a relative value of the remaining space (integer followed by *). When using a relative value, "*" is the same as "1*".HTML <frameset> tag example using the rows attribute.<frameset rows="80,30%,*"> <frame src="../html/form_tag/" title="sample frame"> <frame src="../html/div_tag/" title="sample frame"> <frame src="../html/span_tag/" title="sample frame"> </frameset> <noframes></noframes>XHTML <frameset> tag example using the rows attribute.<frameset rows="80,30%,*"> <frame src="../html/form_tag/" title="sample frame" /> <frame src="../html/div_tag/" title="sample frame" /> <frame src="../html/span_tag/" title="sample frame" /> </frameset> <noframes></noframes> |
---|
id | The id attribute assigns a unique name to a tag. This allows style sheets or scripts to reference the tag. See id Example |
---|
class | The class attribute assigns a class name to a tag. The class name does not need to be unique. More than one tag can have the same class name. This allows style sheets or scripts to reference multiple tags with a single class name. See class Example |
---|
style | The style attribute specifies styles for the tag. For Cascading Style Sheets (CSS), the syntax is name:value. Each name:value pair is separated by semicolons. See style Example |
---|
title | The title attribute specifies additional information about the tag. It is common for browsers to display the title when the pointing device stops over the object. See title Example |
HTML <frameset> Tag Examples<frameset> tag example.<frameset> tag example using the cols attribute.<frameset> tag example using the rows attribute. |
The material on this site (LittleWebHut.com) is for educational purposes only. We make no warranty or guarantee of the accuracy or reliability of information contained herein or at other sites to which we link. The risk from using this site, the information contained herein, or the sites to which we link lies entirely with the user. By using this site, you agree to have read and accepted our Terms of Use and Privacy Policy.