td Tag in Html
This tag defines a standard cell in an HTML table.
An HTML table
has two kinds of cells:
Header cells - contains header information (created with the th tag
Standard cells - contains data (created with the td tag
The text in a th element is bold and centered. The text in a td element is regular and left-aligned.
td Tag Attributes
colspan - can be used to specify across how many columns the cell should spread. The default value is 1.
rowspan - can be used to specify across how many rows the cell should spread. The default value is 1.
abbr - can be used to specify an abbreviated version of the content of the cell.
axis - can be used to specify a category that forms a conceptual axis in n-dimensional space for hierarchical structuring. The value can be a single name or a comma-separated list of names.
headers - can be used to explicitly specify which header cells are associated to the cell. The value is a single or comma-separated list of table cell id values.
scope - can be used to explicitly specify that the cell contains header information for the rest of the row (value row), column (value col), row group (value rowgroup) or column group (value colgroup) that contains it.
align - can be used to horizontally align the content of the cell. The value can be left, center, right, justify or char.
valign - can be used to vertically align the content of the cell. The value can be top, middle, bottom or baseline.
char - can be used to specify a character with which cells will align, such as a decimal point. It is not supported by any major browser.
charoff - can be used to specify the number of pixels the alignment should be offset from the char character.
<td>What is the capital of Burundi?</td>
<td>What is the capital of France?</td>
<td>Erm... sort of</td>