The <frame> element defined one pane inside a <frameset>. Each pane loaded another HTML document via src.
Do not use it in new pages. Embed documents with <iframe>, and build split layouts with CSS Grid or Flexbox. Old documents sometimes paired frames with <noframes> for browsers without frame support.
Deprecated · Obsolete.
Removed from the HTML living standard. Avoid in every new project — prefer <iframe> or CSS layout.
Not the same as <iframe>.
<frame> only belonged inside <frameset> (no normal <body>). <iframe> sits in the page flow and is valid HTML5.
Syntax
HTML Syntax
syntax.html
<frame src="url">
Historical void-style element inside <frameset> (not inside <body>). Prefer this modern approach when you need an embed:
prefer.html
<iframe src="panel.html" title="Panel"></iframe>
Reference
Attributes
Legacy attributes you may see in old frameset pages. Do not use them in new work.
Lay them out with CSS Grid (or Flexbox) instead of frameset columns.
Keep one document so bookmarks, search, and screen readers work normally.
Reach for <iframe> only when you truly need a nested browsing context.
Edge Cases & Pitfalls
Most problems come from treating obsolete frames like modern HTML, or confusing them with iframe.
obsolete
No <body> with frameset
Legacy frameset documents used <frameset> instead of <body>. Mixing both was invalid even then.
a11y
Hard for assistive tech
Multiple documents in one window made titles, focus, and reading order confusing. Prefer one page or a titled <iframe>.
seo
Weak for search and sharing
Each pane had its own URL. Bookmarks and crawlers often missed the “full” layout users saw.
naming
frame ≠ iframe
Do not rename <iframe> to <frame>. Only <iframe> is allowed in modern HTML.
attrs
Skip presentation attributes
scrolling, frameborder, marginwidth, and noresize are legacy. Use CSS on modern embeds instead.
Compatibility
Browser Support
Authors must not use <frame>. Engines may keep limited legacy behavior for old documents; HTML5 sites should use <iframe> or CSS.
✓ Deprecated · Obsolete
<frame>
Obsolete in the HTML living standard. Do not rely on frameset support in modern documents. Migrate to iframe for embeds and CSS for split layouts.
N/ADo not use in new HTML
Google ChromeLegacy only
Do not use
Mozilla FirefoxLegacy only
Do not use
Apple SafariLegacy only
Do not use
Microsoft EdgeLegacy only
Do not use
OperaLegacy only
Do not use
Samsung InternetLegacy only
Do not use
Internet ExplorerLegacy
Do not use
<frame>Obsolete (use <iframe> / CSS)
Bottom line: Recognize <frame> in old markup, then replace with <iframe> or CSS. Never add frame to new documents.
Remember
Key Takeaways
Role:<frame> was one pane inside <frameset> — now obsolete.
Replace embeds: use <iframe> with a clear title.
Replace layouts: use CSS Grid or Flexbox in one document.
Study only: know src / name so you can read legacy codebases.
One line: never write <frame>; write <iframe> or CSS for panes.
UA style
Default CSS Settings
<frame> was a replaced pane inside a frameset. There is no useful modern default to copy. For embeds today, browsers treat iframe roughly like:
default.css
iframe:not([hidden]) {
border: 2px inset;
display: inline-block;
overflow: clip;
/* width / height from attributes or CSS */
}
Style size and borders with CSS on iframe. Do not revive frameborder or scrolling on obsolete <frame>.
Frequently Asked Questions
The frame element defined one pane inside a frameset. Each frame loaded its own HTML document so the browser window could show a split layout (for example a sidebar and main content).
No. frame and frameset are obsolete and removed from the HTML living standard. Do not use them in new projects.
frame lived only inside frameset and split the whole window — it is obsolete. iframe embeds another document inside a normal page body and is valid HTML5.
Use iframe when you need to embed another page, and CSS Grid or Flexbox when you need a multi-pane layout of your own content.
Framesets hurt accessibility, bookmarking, printing, and SEO (each pane is a separate document). Modern layout and iframe cover the same goals more safely.
Some engines keep limited legacy support for very old documents, but HTML5 documents with a body do not use framesets. Always migrate to iframe or CSS.