Share
Tables
Tables are defined with the <table> tag.
A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the &tl;td&tg; tag). td stands for "table data," and holds the content of a data cell. A &tl;td&tg; tag can contain text, links, images, lists, forms, other tables, etc.
Table Example:
<table>
<tr>
<td>Color>/td><td>Black</td>
</tr>
<tr>
<td>Color>/td><td>White</td>
</tr>
<tr>
<td>Fruits</td><td>Apple</td>
</tr>
<tr>
<td>Fruits</td><td>Strawberry</td>
</tr>
</table>
The HTML Code above looks in browser:
| Color | Black |
| Color | White |
| Fruits | Apple |
| Fruits | Strawberry |