[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
HTMLSPEC-TD
Used to define a table data cell within the table row. NOTE: a data cell must be placed inside a table row.
Attributes
Specifies the horizontal alignment of the contents of a cell.
Specifies the vertical alignment of the contents of a cell.
Specifies the number of columns a cell will expand represented by #.
Specifies the number of rows a cell will expand represented by #.
Eliminates word wrapping in a cell.
Specifies the width of the cell. (pixel or percentage values) represented by #.
Specifies the height of the cell. (pixel of percentage values) represented by #.
Specifies the color of the background of the cell; you must use hexadecimal HTML color values as usual.
Specifies an image to be used as the background of the cell.
Live Example
HTML Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
HTMLSPEC-TD
TD
UsageUsed to define a table data cell within the table row. NOTE: a data cell must be placed inside a table row.
Attributes
align="left | center | right"
Specifies the horizontal alignment of the contents of a cell.
valign="top | middle | bottom"
Specifies the vertical alignment of the contents of a cell.
colspan="#"
Specifies the number of columns a cell will expand represented by #.
rowspan="#"
Specifies the number of rows a cell will expand represented by #.
nowrap
Eliminates word wrapping in a cell.
width="#"
Specifies the width of the cell. (pixel or percentage values) represented by #.
height="#"
Specifies the height of the cell. (pixel of percentage values) represented by #.
bgcolor="#hexValue"
Specifies the color of the background of the cell; you must use hexadecimal HTML color values as usual.
background="imageURL"
Specifies an image to be used as the background of the cell.
Live Example
<html> <head><title></title></head> <body> <table border=1 width=300> <caption><font size=2pt face="arial">Example Table</caption> <tr> <th bgcolor=#000000><font size=2pt face="arial" color=#FFFFFF>Heading A</font></th> <th bgcolor=#000000><font size=2pt face="arial" color=#FFFFFF>Heading B</font></th> </tr> <tr> <td align="left"><font size=2pt face="arial">Text A</font></td> <td align="right"><font size=2pt face="arial">Text B</font></td> </tr> </table> </body> </html>
HTML Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
