Index.php Code Part 7
| <tr> |
The next line "<tr>" starts the next row of cells in our table.
| <td></td> |
The line "<td></td>" creates a blank cell. Remember that we need to have the same amount of cells per row in our table. This line tells the computer that yes, there is a cell here, but since there is nothing between the start and stopping tags, the cell is blank. We don't need to define the width of the cell, because that was done in the first row. This cell will follow the width rules of the cell directly above it.
| <td><!--- Blank Column ---> </td> |
The "<td><!--- Blank Column ---> </td>" just adds another blank column. We don't need to add the non-breaking space again since this cell with follow the width rules of the cell above it. We do so to make it easier to find in the future.
| <td> <?php include ("includes/menubar.inc.php" ); ?> </td> |
The next three lines, "<td>", "<?php include ("includes/menubar.inc.php" ); ?>", and "</td>" place the menu bar on the website. It is ok that this takes three line instead of the one because the computer is going to ignore all of the white space around the tags. Remember that white space is all of those returns, tabs, and more than one space on the spacebar in the code. The computer is going to read this all as one line anyway.
| <td><!--- Blank Column ---> </td> |
This line "<td><td><!--- Blank Column ---> </td>" is just another blank column.
| <td></td> |
The "<td></td>" creates another blank cell to allow for the same amount of cells per row in the table.
| </tr> |
And the "</tr>" tag ends the row.
| <tr> |
The "<tr>" in the next line, starts the new row.
| <td valign="top"><!--- Left Side ---><?php include ("includes/sideleft.inc.php" ); ?></td> |
The next line starts the left side section of the website. The "<td valign="top">" starts the cell and tells the computer to align everything within to the top of the cell. The "<!--- Left Side --->" is just a note indicating that this is where the code for the left side should go. The "<?php include ("includes/sideleft.inc.php" ); ?>" includes our include file. And the "</td>" tag, ends the cell.
| <td><!--- Blank Column ---> </td> |
The "<td><!--- Blank Column ---> </td>" is just another blank column.


