Table Making Guide
Hi, and welcome to the table making guide! This is a basic HTML tutorial on how to make and code a table. Let's get started.
Step One: Preparation
First, you need to decide how many rows and columns you need. We'll start off with a basic one row, two column (1x2) table. Enter this HTML where you want your table to be:
And you get...
Step Three: Adding Rows, COLSPAN
To add a row, all you do is start a new < tr >< /tr > tag. Let's take the table from the previous step and add one under it with four columns.
However, it looks like this now:
| text |
text |
| text |
text |
text |
text |
To fix this, you need to add a special code to all of the rows that have more than the least number of rows. In our example, we have a row with two columns and one with four. So, we add "colspan=2" to the first row to show that those two columns need to strech to the four below.
Which gives us:
| text |
text |
| text |
text |
text |
text |
Step Four: Borders
Changing Border Width
Remember that first code?
|