- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- HTML <noframes> Tag
HTML Tags
HTML <noframes> Tag
The noframes tag held fallback content for browsers that could not show frames, inside an old-style frameset page. Frames are obsolete, so this fallback is too. You will only meet it in very old websites.
It belonged inside the frameset tag, which split the window into several pages. Browsers that understood frames ignored the text in <noframes>; others showed it.
Syntax
html
<noframes>
Alternative content goes here...
</noframes>It has no attributes of its own.
Example
html
<!DOCTYPE html>
<html>
<head>
<title>Example of noframes Tag</title>
</head>
<frameset cols="50%,50%">
<frame src="/samples/frame-left.html">
<frame src="/samples/frame-right.html">
<noframes>
<body>
<p>Your browser does not support frames. Please visit
<a href="/samples/frame-left.html">Frame 1</a> or
<a href="/samples/frame-right.html">Frame 2</a> manually.</p>
</body>
</noframes>
</frameset>
</html>In the past, a frame-capable browser showed the two pages side by side, and an old one showed the message with two links. Current browsers do not display framesets in HTML5 pages, so neither happens as intended.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|
| No | No | No | No | No |
Not part of HTML5. Some browsers still parse it in very old pages, but it should not be used.
What to do with old frame pages
Rebuild them as normal pages that share the same header and menu, laid out with CSS. Use semantic HTML for the structure, and an iframe only where you really need to show another page inside yours.
HTML <noframes> Tag exercises
Provide real content
Pages no longer use frames, so they need no text for browsers without them. Write the content itself: the main element with the level 1 heading Welcome and the paragraph Read on.
Result
