HTML TUTORIAL: HTML Tables
- By: rcable
- On: 05/24/2009 10:29:39
- In: HTML Tutorials
- Comments: 0
HTML tables are a great way to display information on a web page laid out in much the way data is displayed in spreadsheets.
Tables are defined by the <table> tag and are divided in to rows using the <tr> tag and columns using the <td> tag. The <th> tag is used to define table headers for each column in the table.
HTML tables are a great way to display information on a web page laid out in much the way data is displayed in spreadsheets.
Tables are defined by the <table> tag and are divided in to rows using the <tr> tag and columns using the <td> tag. The <th> tag is used to define table headers for each column in the table.
Sample Table
| Name | Address |
|---|---|
| Rick | 1234 Easy St. |
| Bob | 5150 Seacrest Dr. |
Sample Code
<table border="1">
<tr>
<th>Name</th>
<th>Address</th>
</tr>
<tr>
<td>Rick</td>
<td>1234 Easy St.</td>
</tr>
<tr>
<td>Bob</td>
<td>5150 Seacrest Dr.</td>
</tr>
</table>
Video Tutorial
Comments
There have been no comments made on this article. Why not be the first and add your own comment using the form below.
Leave a comment
Commenting is restricted to registered users only. Please register or login now to submit a comment.