Skip to Content
Dreamweaver CS6: The Missing Manual
book

Dreamweaver CS6: The Missing Manual

by David Sawyer McFarland
July 2012
Intermediate to advanced
1034 pages
38h 32m
English
O'Reilly Media, Inc.
Content preview from Dreamweaver CS6: The Missing Manual

Table Basics

A table is a grid of rows and columns that intersect to form cells, as shown in Figure 6-2. If you’ve used a spreadsheet before, an HTML table should feel familiar.

Rows, columns, and cells make up a table. Cell spacing specifies how many pixels of space appear between cells. Cell padding, on the other hand, adds space between the four sides of a cell and the cell’s content.

Figure 6-2. Rows, columns, and cells make up a table. Cell spacing specifies how many pixels of space appear between cells. Cell padding, on the other hand, adds space between the four sides of a cell and the cell’s content.

A table row usually represents a collection of data for a single item. In Figure 6-1, for example, each row holds data for one product. A table column represents data of a particular type. The first column in Figure 6-1 contains the name of each product, while the second column displays its cost. A table cell, then, holds one piece of data for a particular row, like the exact price of the Rainbow Chia Seeds.

At a minimum, you use three HTML tags to create a table (there are actually quite a few tags related to table design, as you’ll read about soon). You set the boundaries of the table with the <table> tag. Then, within this structure, you add table rows using the <tr> tag. Finally, you divide a table row into individual cells, each of which holds one piece of data.

You create a cell that holds data—$49.95, for instance—with the <td> or table data tag. Browsers align the text inside a <td> to the left edge of the cell.

A fourth tag, the <th>, or table head tag, also creates cells within a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Dreamweaver CS4: The Missing Manual

Dreamweaver CS4: The Missing Manual

David Sawyer McFarland
Dreamweaver CC: The Missing Manual

Dreamweaver CC: The Missing Manual

Chris Grover, David Sawyer McFarland

Publisher Resources

ISBN: 9781449326999Errata Page