html5 Site Icon CSS3 Site Icon CSS Site Icon

HTML4 Reference

HTML <frameset> tag (Frameset DTD)

Definition

The <frameset> tag is used to define a frameset that holds two or more documents.

Avoid Frames

Frames allow more than 1 document to be loaded on a page!

  1. Bang go bookmarks to the page
  2. Makes navigation hell for people using screen readers
  3. Search engines get confused
  4. You need to use the Frameset DTD
  5. Say goodbye to mobile web viewers that require XHTML
  6. Adds avoidable complexity

Example


<frameset cols="50%,50%">
</frameset>

Required Attributes

NONE

Optional Attributes

cols - specifies the character width of the frameset.


<!-- Valid values are %, a value (in pixels) or * (rest of available space)
<frameset cols="50%,50%"></frameset>

rows - specifies the number of rows in the frameset.


<!-- Valid values are %, a value (in pixels) or * (rest of available space)
<frameset rows="50%,50%" ></frameset>

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<frameset class="classname"></frameset>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<frameset id="idname"></frameset>

style - specifies an inline style for the element allowing you to apply the style to the content.


<frameset style="color:red;text-align:left"></frameset>

title - specifies extra information about the content.


<frameset title="information about the content"></frameset>

Language Attributes

NONE

Document Event Attributes

onload - The JavaScript code to be run when the document is loaded.


<frameset onload="go()"></frameset>   <!-- Executes the go() function -->

onunload - The JavaScript code to be run when the document is unloaded.


<frameset onunload="go()"></frameset>   <!-- Executes the go() function -->

Form Event Attributes

NONE

Image Event Attributes

NONE

Keyboard Event Attributes

NONE

Mouse Event Attributes

NONE



<frame /> tag    << Prev          Next >>   <h1-h6> tag

go to home page Homepage go to top of page Top

HTML Elements

The complete set of HTML elements also known as HTML tags from the latest HTML 4.01 Specification.

Click the links for more information on individual tags and their attributes.

<!--...-->

<!DOCTYPE>

<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> - <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>