Legacy & Obsolete Elements

<frameset>

Obsolete or historical HTML; do not use in new documents. Divided the viewport into multiple frame documents instead of a conventional body. Replace with semantic page regions and CSS layout; preserve navigable URLs and focus order. The syntax shows old markup for recognition only. The runnable example demonstrates a modern migration pattern, not the obsolete behavior.

Formal Syntax & Structure

html syntaxhtml
<frameset cols="25%,75%">  <frame src="nav.html">    <frame src="main.html">    </frameset>

Working Example

Example Snippethtml
<div style="display:grid;grid-template-columns:1fr 3fr;gap:1rem">  <nav>    <a href="/">Home</a>  </nav>  <main>    <h1>Dashboard</h1>  </main></div>
HTML Reference