Example:
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
The html code for this looks like:
< table border = "2" width = "50%" cellpadding = "20" cellspacing = "20" >
<tr> <td> 1 </td> <td> 2 </td> </tr>
<tr> <td> 3 </td> <td> 4 </td> </tr>
<tr> <td> 5 </td> <td> 6 </td> </tr>
</table>
With out the border tag in the table tag the table wouldn't have lines and would look like this:
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
The table width tag can be done in pixels or in percent.
When you write in the percent it is talking about the percent of the page the table takes up.
It looks like this:
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
The html code for this looks like:
< table border = "2" width = "50%" >
<tr> <td> 1 </td> <td> 2 </td> </tr>
<tr> <td> 3 </td> <td> 4 </td> </tr>
<tr> <td> 5 </td> <td> 6 </td> </tr>
</table>
The cell padding tag creates "padding" around the cell content, and it is done in pixels. It looks like this:
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
The html code for this looks like:
< table border = "2" cellpadding = "20" >
<tr> <td> 1 </td> <td> 2 </td> </tr>
<tr> <td> 3 </td> <td> 4 </td> </tr>
<tr> <td> 5 </td> <td> 6 </td> </tr>
</table>
The cell spacing tag creates space between each cell. It looks like this:
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
The html code for this looks like:
< table border = "2" cellspacing = "20" >
<tr> <td> 1 </td> <td> 2 </td> </tr>
<tr> <td> 3 </td> <td> 4 </td> </tr>
<tr> <td> 5 </td> <td> 6 </td> </tr>
</table>
Example of Colspan(combining horizontally):
| 1 | |
| 2 | 3 |
| 4 | 5 |
Example of Rowspan(combining vertically):
| 1 | 2 | 3 |
| 4 | 5 | |
| 6 | 7 |
| A | B |
| C | D |
| E | F |
The html code for this looks like:
This is how it looks in the tr(row) tag:
| A | B |
| C | D |
| E | F |
The html code for this looks like:
< table border = "2" width = "50%" cellpadding = "20" cellspacing = "20" >
<tr bgcolor= "dcf748"> <td> 1 </td> <td> 2 </td> </tr>
<tr bgcolor= "dcf748"> <td> 3 </td> <td> 4 </td> </tr>
<tr bgcolor= "dcf748"> <td> 5 </td> <td> 6 </td> </tr>
</table>
This is how it looks in the td(cell) tag:
| A | B |
| C | D |
| E | F |
The html code for this looks like:
< table bgcolor= "dcf748" border = "2" width = "50%" cellpadding = "20" cellspacing = "20" >
<tr> <td bgcolor= "dcf748"> 1 </td> <td> 2 </td> </tr>
<tr> <td bgcolor= "dcf748"> 3 </td> <td> 4 </td> </tr>
<tr> <td bgcolor= "dcf748"> 5 </td> <td> 6 </td> </tr>
</table>
You can also use tileable images to create a background image for the table.
| Blair | Blair |
| Blair | Blair |
| Blair | Blair |
The html code looks like this:
< table border = "2" width = "50%" background = "foldername/filename" cellpadding = "20" >
<tr> <td > Blair </td> <td> Blair </td> </tr>
<tr> <td > Blair </td> <td> Blair </td> </tr>
<tr> <td > Blair </td> <td> Blair </td> </tr>
</table>
| My Colleges | |||||
| Aceptances: | Purdue | CU Boulder | Univeristy of Delaware | Loyola Marymount | University of San Diego |
| . | | | | | |