SQL PHP HTML JavaScript articles and free code
 
 

Table Data

            Table data tags <td> ... </td> define each cell in the table. These tags must be nested within the table row tags. Each row can have different number of cells.

      Attributes of Table Data:

          Align: Used to specify the horizontal alignment of the text with in the cell.

          Colspan: This is used when the width of the cell has to be mentioned in number of colums and usually used when a cell occupies more than one column.

          Rowspan: This is used when the height of the cell has to be mentioned in number of rows and usually used when a cell occupies more than one row.

          Example:

          <table border=1>
              <tr>
                <td>Cell 1 </td>
                <td>Cell 2 </td>
                </tr>
                <tr>
                <td>Cell 3 </td>
                <td>Cell 4 </td>
                </tr>
          </table>

          Above code defines a table with two rows and four cells as below.

             

Cell 1 Cell 2
Cell 3 Cell 4

         HTML Table  | Table Row  | Table Data  | Table Heading

Discuss this tutorial at forum

List of HTML Tutorials

 

Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript
List of HTML Tutorial
HTML Tags
Color Chart
HTML Calendar
Tags on web page
Web Design
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.