Table Tags

PrevRich Text Display in the CardNext

Table Tags

<table>...</table>

A table. Tables support the following attributes:

  • bgcolor -- The background color.

  • width -- The table width. This is either an absolute pixel width or a relative percentage of the table's width, for example width=80%.

  • border -- The width of the table border. The default is 0 (= no border).

  • cellspacing -- Additional space around the table cells. The default is 2.

  • cellpadding -- Additional space around the contents of table cells. The default is 1.

<tr>...</tr>

A table row. This is only valid within a table. Rows support the following attribute:

  • bgcolor -- The background color.

<th>...</th>

A table header cell. Similar to td, but defaults to center alignment and a bold font.

<td>...</td>

A table data cell. This is only valid within a tr. Cells support the following attributes:

  • bgcolor -- The background color.

  • width -- The cell width. This is either an absolute pixel width or a relative percentage of table's width, for example width=50%.

  • colspan -- Specifies how many columns this cell spans. The default is 1.

  • rowspan -- Specifies how many rows this cell spans. The default is 1.

  • align -- Alignment; possible values are left, right, and center. The default is left.

  • valign -- Vertical alignment; possible values are top, middle, and bottom. The default is middle.

PrevHomeNext
Special Elements Up Effective Learning