HTML - <noframes> Tag



HTML <noframes> tag is used to handle the browsers which do not support <frame> tag. This tag is used to display alternate text message.

This tag is no longer recommended as it is deprecated and not supported in the HTML5.

Syntax

<noframes> .. </noframes>

Attribute

HTML noframes tag supports Global attributes of HTML.

Bellow example will illustrate the usage of noframes tag. Where, when and how to use noframes tag to when the frame tag is not supported by the browser.

Example of HTML noframes Tag

Bellow example will illustrate the usage of noframes tag. Where, when and how to use noframes tag to when the frames tag is not supported by the browser.

Alternative Content if frame Failed

Consider the following example, where we are going to use alternate contain in text forn in the <nofarmes> tag if the browser failed to support the frame tag.

<!DOCTYPE html>
<html>
<head>
   <title>HTML noframes Tag</title>
</head>
<frameset cols="200, *">
   <frame src=
"https://www.tutorialspoint.com/cg/images/logo.png" />
   <frame src=
"https://www.tutorialspoint.com/static/images/hero.png" />
   <noframes>
      <body> 
         Your browser does not support frames.
      </body>
   </noframes>
</frameset>
</html>

Alternative image if embed Failed

Consider the following example, where we are going to use alternate image in the <onframes> tag if the browser fialed to support the frame tag.

<!DOCTYPE html>
<html>

<head>
    <title>HTML noframes Tag</title>
</head>
<frameset cols="200, *">
    <frame src=
"https://www.tutorialspoint.com/cg/images/logo.png"/>
    <frame src=
"https://www.tutorialspoint.com/static/images/hero.png"/>
    <noframes>

        <body>
            <img src=
"https://www.tutorialspoint.com/cg/images/logo.png"/>
            <img src=
"https://www.tutorialspoint.com/static/images/hero.png"/>
        </body>
    </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