All Guides

Table-Based Layouts

Table-based layouts used HTML table elements to create complex webpage designs by treating table cells as containers for different content areas like navigation menus, sidebars, and main content. Before CSS became widely supported, tables were the primary method for creating sophisticated page layouts beyond simple top-to-bottom text flow. “html <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="2" bgcolor="#FF0000"> <h1>My Awesome Website Header</h1> </td> </tr> <tr> <td width="150" bgcolor="#00FF00" valign="top"> <!-- Navigation Menu --> <a href="home.html">Home</a><br> <a href="about.html">About</a><br> <a href="links.html">Links</a><br> </td> <td bgcolor="#FFFFFF" valign="top"> <!-- Main Content Area --> <p>Welcome to my homepage!</p> </td> </tr> </table>

Why Table-Based Layouts Matters

Table-based layouts represented the creative ingenuity of early web designers who pushed HTML beyond its intended purpose to achieve visual designs that matched print layouts. While eventually replaced by CSS-based design, table layouts demonstrated the web community's drive to create sophisticated visual presentations and helped establish many layout patterns still used in modern responsive design.