Search Help:  
 
Enter keywords to search help.

How do I make a table?

Here is the code for a simple table:

<TABLE>
<TR>
<TD>1</TD>
<TD>2</TD>
</TR>
</TABLE>

Each tag within the table serves a purpose. For example:

  • Every table must open with this tag <TABLE> and close with this tag </TABLE>.

  • Every table row must open with this tag <TR> and close with this tag </TR>.

    Here is a table with three rows:

    1
    2
    3

  • Each table row also contains one or more table data cells. Every table data cell must open with this tag <TD> and close with this tag </TD>.

    Here is an example of a table with one table row and three table data cells:

    1 2 3

So, if you have the following table code in your page:

<TABLE border=1 width=70%>
<TR>
<TD>1</TD>
<TD>2</TD>
</TR>
</TABLE>

The table will appear like this, when you view your page:

1 2

Notice, this is a table with one table row and two table data cells.

Was this article helpful?

Yes   No
Click to contact Customer Care for further assistance.