CHAPTER 8

Working with Tables

Are you looking for a way to organize data on your web page into rows and columns? This chapter shows you how to use HTML tables to do this. You create tables using an outer <table> tag and various other tags within it. A <tr> tag defines a row in a table, and <td> tags define data cells within the row. In addition to organizing data with tables, you can add color or background images behind the data in tables. You can also use tables as layout tools to organize sections of content on your page.

image

Understanding Table Structure

Add a Table

Add Table Borders

Adjust Cell Padding and Border Spacing

Adjust Cell Width and ...

Get Teach Yourself Visually™ HTML5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.