![]() |
Tables give you a way to format information as rows and columns. There are four pairs of tags that are used in creating tables in HTML documents. They are:
Here is the HTML for a simple table with three rows and two columns is shown below.
| This HTML... | Produces this... | ||||||
|---|---|---|---|---|---|---|---|
<table> <tr> <td>Harrison County</td> <td>Clarksburg</td> </tr> <tr> <td>Marion County</td> <td>Fairmont</td> </tr> <tr> <td>Monongalia County</td> <td>Morgantown</td> </tr> </table> |
|
| <table border=1> | <table border=2> | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|