HTML - <noframes> Tag



Introduction to <noframes> Tag

The HTML <noframes> tag acts a fallback container to browser that does not support the frames or have frames disabled. They are commonly used to create the websites with multiple, independently scrollable sections.

The <noframes> tag is placed within the <frameset> tag and provides an alternative content option.

This tag is no longer recommended as it is deprecated and replaced with CSS and JavaScript-based solutions.

Syntax

Following is the syntax of HTML <noframes> tag −

<noframes> .. </noframes>

Attributes

HTML noframes tag supports Global attributes of HTML.

Alternative Content if frame Failed

Let's look at the following example, where we are going to consider the basic usage of the <noframes> tag.

<!DOCTYPE html>
<html>
<frameset cols="50%,50%">
    <frame src="https://www.tutorialspoint.com/index.htm">
    <frame src="https://www.tutorialspoint.com/whiteboard.htm">
    <noframes>
        <p>Your browser does not support frames.</p>
    </noframes>
</frameset>
</html>

Example : Embedding a Simple Image as Fallback

Consider the following example, where the image is displayed to provide a visual fallback if the browser does not support frames.

<!DOCTYPE html>
<html>
<frameset rows="50%,50%">
    <frame src="https://www.tutorialspoint.com/articles/index.php">
    <frame src="https://www.tutorialspoint.com/online_dev_tools.htm">
    <noframes>
        <img src="https://www.tutorialspoint.com/cg/images/logo.png" alt="Browser does not support frames">
    </noframes>
</frameset>
</html>

Supported Browsers

Tag Chrome Edge Firefox Safari Opera
noframes Yes 1.0 Yes 12.0 Yes 1.0 Yes 4.0 Yes 15.0
html_tags_reference.htm
Advertisements