Table Cells
Article ID: KB101197
A Table Cell is one "box" within a
table. For example, the table below has
thirteen cells -- one across the top with "2003 Sales" as the header, and twelve
data cells below.

The HTML code for a table may look something like this:
 |
<table>
<tr>
<th>A</th>
<th>B</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table> |
<table></table>
These tags show where the table begins and ends.
<tr></tr>
These tags show where each table row begins and ends.
<th></th>
These tags are specifically for table header cells. They enclose the
content that is inside each cell.
<td></td>
These tags show where each table
cell begins and ends. They enclose the
content that is inside each cell.
|
There are two types of table cells.
- "Normal" table cells are marked in the HTML code by the
<td></td> tags.
With default formatting, the content in a table cell is left-aligned and
will float vertically in the middle of the cell.
- "Header" table cells are marked in the HTML code by the
<th></th> tags.
With default formatting, the content in a table header cell is
center-aligned, bold text, and floats vertically in the middle of the cell.
Header cells were originally designed to hold table header information.
Learn more about
Table Cell Properties to find out more about formatting
cells, adding background colors, causing cells to "stretch" across columns or
rows, and more.
Was this helpful?
Please rate this article:
Email address: (not required)
(Please provide your email address if you would like PixelMill support to follow-up with you about your comment. Your email address is NOT REQUIRED to submit a comment.)
Comments: (How can we improve this article?)
Clicking "Submit" will not clear this page.
link to this page:
http://www.pixelmill.com/support/al1034/kb101197.htm
permalink to this article:
http://www.pixelmill.com/support/kb101197.htm
Back to top