|
Creating TablesYou can create tables in an HTML document to display different types of data.Here is a quick tutorial on how to create a table in your webpage.
First you have to let the browser know that it will be displaying a table. <table>
You can also set the table width, height, border, cellspacing, and cellpadding within the first tag.
The next thing to do is create a row in your table.
In the following example, I'll use the same table as above, only this time, I'll add a two rows with the various attributes applied. <table border=1 width=60% height=300 cellspacing=0 cellpadding=0> <tr> <td>This is the content in the first cell.</td> <td>This is the content in the second cell.</td> <td>This is the content in the third cell.</td> </tr> <tr> <td align=left>Align left</td> <td align=center>Align center</td> <td align=right>Align right</td> </tr> <tr> <td valign=top>Align top</td> <td valign=middle>Align middle</td> <td valign=bottom>Align bottom</td> </tr> </table> Here is how the new table will look at game speed.
To align content top to bottom, use the valign attribute.
And that's about all there is to creating tables. Choose another tutorial by clicking one of the links below. |