Tag <noframes> HTML Reference



Example

A three-framed page, with a <noframes> tag:

<html>

<frameset cols="25%,50%,25%">
  <frame src="frame_a.htm" />
  <frame src="frame_b.htm" />
  <frame src="frame_c.htm" />
  <noframes><body>Sorry, your browser does not handle frames!</body>
  </noframes>
</frameset>

</html>

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

1. Definition and Usage

The <noframes> tag is a fallback tag for browsers that do not support frames. It can contain all the HTML elements that you can find inside the <body> element of a normal HTML page.

The <noframes> element can be used to link to a non-frameset version of the web site or to display a message to users that frames are required.

The <noframes> element goes inside the <frameset> element.


2. Tips and Notes

Note: If you want to validate a page containing frames, be sure the <!DOCTYPE> is set to either "HTML Frameset DTD" or "XHTML Frameset DTD".


3. Differences Between HTML and XHTML

Important: In XHTML Frameset DTD, the text in the <noframes> element must be enclosed in a <body> element.


4. Standard Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

The <noframes> tag supports the following standard attributes:

AttributeValueDescriptionDTD
classclassnameSpecifies a classname for an elementTF
dirrtl
ltr
Specifies the text direction for the content in an elementTF
ididSpecifies a unique id for an elementTF
langlanguage_codeSpecifies a language code for the content in an elementTF
stylestyle_definitionSpecifies an inline style for an elementTF
titletextSpecifies extra information about an elementTF
xml:langlanguage_codeSpecifies a language code for the content in an element, in XHTML documentsTF

5. Event Attributes

The <noframes> tag supports the following event attributes:

AttributeValueDescriptionDTD
onclickscriptScript to be run on a mouse clickTF
ondblclickscriptScript to be run on a mouse double-clickTF
onmousedownscriptScript to be run when mouse button is pressedTF
onmousemovescriptScript to be run when mouse pointer movesTF
onmouseoutscriptScript to be run when mouse pointer moves out of an elementTF
onmouseoverscriptScript to be run when mouse pointer moves over an elementTF
onmouseupscriptScript to be run when mouse button is releasedTF
onkeydownscriptScript to be run when a key is pressedTF
onkeypressscriptScript to be run when a key is pressed and releasedTF
onkeyupscriptScript to be run when a key is releasedTF

Relative articles