Chapter 1 Fun with Tables

For the longest time, tables were the tool of choice for web designers who needed a non-linear way to lay out a web page’s contents. While they were never intended to be used for this purpose, the row-and-column structure of tables provided a natural grid system that was too tempting for designers to ignore. This misuse of tables has shifted many designers’ attention away from the original purpose for which they were intended: the marking up of tabular data.

Though the life of a table begins in HTML, it doesn’t have to end there. JavaScript allows us to add interactivity to an otherwise static HTML table. The aim of this chapter is to give you a solid understanding of how to work with tables in JavaScript, so ...

Get The Art & Science of JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.