<noframes>
HTML <noframes> Tag
The <noframes> tag contains an alternate text to be displayed in browsers which do not support frames (defined using <frame> tag). The tag can also contain a link to a non-frameset version of the web site. If the browser supports frames, the <noframes> tag will be ignored.
The <noframes> tag can contain all the HTML elements that can be used inside the <body> element of a normal HTML page.
The <noframes> tag should be nested inside the <frameset> tag.
The <noframes> is a deprecated HTML tag in HTML5, as all the main browsers support the frames.
To be sure that a page containing frames is valid set <!DOCTYPE> to “HTML Frameset DTD”, or “XHTML Frameset DTD”.
Syntax
Syntax (语法)
The <noframes> tag comes in pairs. The content is written between the opening (<noframes>) and closing (</noframes>) tags.
Example of the HTML <noframes> tag:
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<frameset cols="50%,50%">
<frame src="https://www.w3cdoc.com/learn-html.html">
<noframes>Sorry, your browser doesn’t support frames. </noframes>
</frameset>
</html>
Result
Attributes
Attributes (属性)
The <noframes> tag only uses the Global Attributes.