Description

The HTML element <noframes> is used to define fallback content for browsers that do not support frames or are configured not to display frames.

It can contain all the HTML elements that can be included in the <body> element.

Not supported in HTML5.

  • Other related elements <frameset>, <frame> are also not supported in HTML5.
  • Use the <iframe> element instead of these elements.

The below table summarizes its usage.

Usage Details
Placement It is displayed as a Block element.
Contents It can contain Block elements, Inline elements, and text.
It can even contain <body> when used inside the <frameset> element.
Tags Both the opening and closing tags are required.
Versions HTML 4, 4.01

Syntax

Here is the basic syntax of the <noframes> element.

<noframes>...</noframes>

Examples

Run this on IDE

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Example - HTML Element noframes</title>
</head>
<body>
    <frameset rows="*,*">
        <frame src="https://randomcodez.com/assets/html/frame-a.html" name="frame-a">
        <frame src="https://randomcodez.com/assets/html/frame-b.html" name="frame-b">
        <noframes>
            <p>Here is the <a href="https://randomcodez.com/assets/html/noframes.html">non-frame based version of the document.</a></p>
        </noframes>
    </frameset>
</body>
</html>

Attributes

The following table shows the list of supported and unsupported attributes for the <meta> element.

Attribute Type Details
Element-Specific Attributes The tag <noframes> doesn't have any element-specific attributes.
Global Attributes NA
Event Attributes NA

Browser Compatibility

The tag <noframes> is supported in all modern browsers.

  • Google Chrome 1+
  • Internet Explorer or Edge 2+
  • Firefox 1+
  • Apple Safari 1+
  • Opera 4+

Related Links