Kid's Guide Publish!
 
 
  Use the Kid's Guide to learn how to write web pages!
then use Publish! to learn how to get your pages live to the Internet!
BACK       

Kid's Guide

1 - Tags
2 - Page Sections
3 - Format/Nesting
4 - Head Tags
5 - Body tags
6 - Text Decoration
7 - Lists
8 - Colour
9 - Source
10 - Images
11 - Links/Anchor Tag
12 - Special Charaters
13 - Tables
    part 1 - rows & columns
    part 2 - backgrounds
    part 3 - alignment
    part 4 - borders
    part 5 - nesting
14 - Frames

Rows = <tr></tr> & Columns = <td></td>

First you must start by telling the browser that you are going to be using a table:
<table></table>
Always work tags in pairs and don't forget to format!!!

Use <tr></tr> for each row and <td></td> for each column. Even when you only have one row with nothing in it, it still has one column in it.
Example - One row:

 

<table>
    <tr>
        <td> </td>
    </tr>
</table>

Example - Two rows, three columns

     
     

<table>
    <tr>
        <td> </td>
        <td> </td>
        <td> </td>
    </tr>
    <tr>
        <td> </td>
        <td> </td>
        <td> </td>
    </tr>
</table>

It is always best to sit down with a piece of paper and draw out your table structure before you try to code it. Especially when you want something more complicated.
Example:

       
 

<table>
    <tr>
        <td rowspan="2"> </td>
        <td> </td>
        <td> </td>
        <td> </td>
    </tr>
    <tr>
        <td colspan="3"> </td>
    </tr>
</table>

rowspan=" "

       
 

The blue section shows a cell that spans or covers two rows. To accomplish this, you use the rowspan="2" command in the <td> tag, with the 2 being the number of rows you want your cell to cover or span.

colspan=" "

       
 

The pink section shows a cell that spans or covers three columns. To accomplish this, you use the colspan="2" command in the <td> tag, with the 3 being the number of columns you want your cell to cover or span.

 

 
Safety and Privacy Policies We'd love to get your feedback! Who Made This?

Copyright © 2002 HTML4KIDSTM. All rights reserved.


Hi! I'm Jet Internet! I'm here to guide you through the site and help you with any questions you may have. When you see and text in red slide your cursor over the word then look here in my Speach bubble. I will be able to help with defining, explaining and providing extra information on that topic.

Cell
Each individual area created by <td></td> = Table Data cell
Can be made as rows, columns or combination of both.

Column
<td></td> = Table Data cell
Multiple Vertical areas within a table.