O'Reilly logo

HTML: A Beginner’s Tutorial by Chris Coremans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6

Tables

A lot of information can be presented in a table. Data such as sport results, train timetables, stock prices are good candidates for a table. This chapter explains how to work with HTML tables.

Overview

An HTML table is a grid of columns and rows and can have a horizontal heading and a vertical one. A table can also have any number of rows and each block in the table is referred to as a table cell. A table cell can span multiple columns and rows. Headings in a table are optional.

You use the table element to create a table. A table element may contain any number of rows, each created using the tr element. A tr element that contains a heading may contain any number of th elements. A tr element that contains normal rows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required