HTML Tags – NoFrames Tag


What is HTML <noframes> tag ?

HTML <noframes> tag is used to handle the browsers which do not support <frame> tag.

HTML <noframes>  tag is used to display alternate text message.

HTML <noframes> tag should be used within <frameset> element.

HTML <noframes> tag is deprecated and currently not supported by HTML5.

How HTML <noframes> tag works ?

HTML <noframes> tag acts as backup for those browsers that does not support frames.

HTML <noframes> tag can contains all the element that can be placed in <body> tag.

HTML <noframes> tag is used to create link with the non-frame set version of any website where you want to display a message to the user.

Why HTML <noframes> tag is used ?

HTML <noframes> tag is used by the website which does not support the <frame> element.

Note: HTML <noframes> tag placed inside of <frameset> tag.

HTML beginners tutorial !!!

Click to Learn More about – HTML Tutorial for beginners

Syntax :


<noframes> Statement for the user </noframes>

Example :

<html>
<head>
        <title>noframes tag</title>
        <style>
                frame {
                        text-align: center;
                }
        </style>
</head>
<!-- frameset attribute starts here -->
<frameset cols="30%, 40%, 30%">
        <frame src="frame1.html" />
        <frame src="frame2.html" />
        <frame src="frame3.html" />
        <noframes>
                Sorry, your browser does not handle frames!
        </noframes>
</frameset>
<!-- frameset attribute ends here -->
</html>

Frame1.html


<html>
	<head>
		<title>Frame</title>
		</head>
		<body bgcolor="lightblue">
			<h2 align="center">Frame1</h2>
			</body>

	</html>

Frame2.html

<html>
	<head>
		<title>Frame</title>
		</head>
		<body bgcolor="orange">
			<h2 align="center">Frame2</h2>
			</body>
	</html>

Frame3.html

<html>
	<head>
		<title>Frame</title>
		</head>
		<body bgcolor="lightgreen">
			<h2 align="center">Frame3</h2>
			</body>
	</html>

Output :

<noframes> Tag Attributes

HTML <noframes> tag does not support any specific attributes.

Global Attributes

HTML <noframes> tag support following global attributes.

SnoAttributesValueDescription
1idunique_nameDeclared unique id for an element.
2classclass_nameDeclared one or more classnames for an element.
3stylestylesCSS inline styles specify an element.
4titletitleSpecify extra details of element contain, this will display as a “tooltip” for an elements.

Event Attributes

HTML <nav> tag does not support any event attributes.

Browser Compatibility

SnoBrowserSupport
1ChromeYes
2FirefoxYes
3EdgeYes
4OperaYes
5SafariYes
6Internet ExplorerYes