html5 Site Icon CSS3 Site Icon CSS Site Icon

HTML4 Reference

HTML <noframes> tag (Frameset DTD)

Definition

The <noframes> tag is used to define content to render when frames are unavailable.

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 noframes DTD
  5. Say goodbye to mobile web viewers that require XHTML
  6. Adds avoidable complexity

Example


<frameset cols="50%,50%">
  <frame src="aURl" /> 
  <frame src="anotherURl" />
  <noframes>Non frame content here</noframes>
</frameset>

Required Attributes

NONE

Optional Attributes

NONE

Common Attributes

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


<noframes class="classname">Non frame content here</noframes>

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


<noframes id="idname">Non frame content here</noframes>

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


<noframes style="color:red;text-align:left">Non frame content here</noframes>

title - specifies extra information about the content.


<noframes title="information about the content">Non frame content here</noframes>

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<noframes dir="ltr">Non frame content here</noframes>

<!-- The text will flow from right to left -->
<noframes dir="rtl">Non frame content here</noframes>

lang - specifies a language code for the content of the element.


<noframes lang="en">Non frame content here</noframes>

xml:lang - specifies a language code for the content of the element in XHTML documents.


<noframes xml:lang="fr">Non frame content here</noframes>

Document Event Attributes

NONE

Form Event Attributes

NONE

Image Event Attributes

NONE

Keyboard Event Attributes

onkeydown - The JavaScript code to be run when an element is in focus and keyboard key is pressed.


<!-- Executes the go() function -->
<noframes onkeydown="go()">Non frame content here</noframes>

onkeypress - The JavaScript code to be run when an element is in focus and keyboard key is pressed down and released.


<!-- Executes the go() function -->
<noframes onkeypress="go()">Non frame content here</noframes>

onkeyup - The JavaScript code to be run when an element is in focus and keyboard key is released.


<!-- Executes the go() function -->
<noframes onkeyup="go()">Non frame content here</noframes>

Mouse Event Attributes

onclick - The JavaScript code to be run when a mouse is clicked on the element.


<!-- Executes the go() function -->
<noframes onclick="go()">Non frame content here</noframes>

ondblclick - The JavaScript code to be run when a mouse is double clicked on the element.


<!-- Executes the go() function -->
<noframes ondblclick="go()">Non frame content here</noframes>

onmousedown - The JavaScript code to be run when the mouse button is pressed down while the cursor is over the element.


<!-- Executes the go() function -->
<noframes onmousedown="go()">Non frame content here</noframes>

onmousemove - The JavaScript code to be run when the mouse button is moved.


<!-- Executes the go() function -->
<noframes onmousemove="go()">Non frame content here</noframes>

onmouseout - The JavaScript code to be run when the mouse cursor moves off an element.


<!-- Executes the go() function -->
<noframes onmouseout="go()">Non frame content here</noframes>

onmouseover - The JavaScript code to be run when the mouse cursor moves over an element.


<!-- Executes the go() function -->
<noframes onmouseover="go()">Non frame content here</noframes>

onmouseup - The JavaScript code to be run when the mouse button is released while the cursor is over the element.


<!-- Executes the go() function -->
<noframes onmouseup="go()">Non frame content here</noframes>


<meta /> tag    << Prev          Next >>   <noscript> 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>