Wednesday, August 17, 2011

HTML Tables


With HTML you can create tables.

 

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 <td> tag). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.

 

<table border="1">

<tr>

<td>row 1, cell 1</td>

<td>row 1, cell 2</td>

</tr>

<tr>

<td>row 2, cell 1</td>

<td>row 2, cell 2</td>

</tr></table>

 

 

How it looks in a browser:





row 1, cell 1
row 1, cell 2
row 2, cell 1
row 2, cell 2




.

No comments:

Post a Comment