Creating a Simple Table

Tables are made up of rows of cells. The number of cells in each row determines the table’s shape.

Figure 16.3. This very simple table has two rows, each of which has only one cell.

Figure 16.4. The style sheet contains only pure text formatting; nothing that would affect the table per se.

To create a simple table:

1.
Type <table>.
2.
If desired, press Return and Tab to visually distinguish the row elements. These won’t affect display in the browser.
3.
Type <tr> to define the beginning of the first row.
4.
Type ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.