Displaying Data Using Tables

Probably the layout feature most frequently used (and most useful) is tables. HTML tables enable you to create grids that can contain text, graphics, and more. Tables are used to facilitate a more controlled page layout, including placing content side by side, in columns, and wrapped around images.

Creating tables involves three sets of tags:

  • <table> and </table>— Used to create the table

  • <tr> and </tr>— Used to create rows in the table

  • <td> and </td>— Used to insert cells within a table row (<th> and </th> also can be used for header cells—essentially data cells formatted a little differently, usually centered and in bold)

So, a simple table with a header row, two columns, and three rows of data (as seen in Figure ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started 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.