174 users online (0 members and 174 guests)  

  HTML Table Cell Tag

The <td> tag starts a conventional table cell. This tag must be placed within both the <table> and <tr> tags.

Here is an example

<td bgcolor"#FFFFFF" align="center" valign="center" colspan="2">

Here are the attributes

  • bgcolor - Sets the background color of the cell

  • align - Sets the justification of the cell contents (see above for possible inputs)

  • valign - Sets the vertical justification of the cell content (see above for possible inputs)

  • colspan - Tables are meant to be grids, but this makes it so you can join cells horizontally

  • rowspan - Distance of the cell walls from its contents

* = mandatory

This is probably pretty confusing right now, be sure to read all our HTML table tutorials and check out the examples so you can put together all you have learned.

Back to the HTML menu.