© Mark J. Collins 2017

Mark J.  Collins, Pro HTML5 with CSS, JavaScript, and Multimedia, 10.1007/978-1-4842-2463-2_6

6. Table HTML Elements

Mark J. Collins

(1)Chesterfield, Virginia, USA

In this chapter, I’ll show you how to organize contents into a table of rows and columns. There are a lot of scenarios where you need to display a list of things, and tables are the perfect solution. In Chapter 4, I demonstrated using ordered and unordered list (ol, ul) elements. These support multiple rows but only a single column, however. If you need to organize a row into multiple columns, tables are the way to go.

Caution

Tables should only be used when presenting tabular data, such as a phone list, or team standings. Do not use tables to define the layout of ...

Get Pro HTML5 with CSS, JavaScript, and Multimedia: Complete Website Development and Best Practices 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.