HTML: Table
HTML table markup tags
table-
Tabular data.
tr-
Table row
td-
Table cell
th-
Table cell header
Example. basic table
| A | B | C |
| D | E | F |
Here is the source code:
<table border="1"> <tr> <td>A</td> <td>B</td> <td>C</td> </tr> <tr> <td>D</td> <td>E</td> <td>F</td> </tr> </table>
Example. table with column span
| A | B and C | |
| D | E | F |
Here is the source code:
<table border="1"> <tr> <td>A</td> <td colspan="2">B and C </td> </tr> <tr> <td>D</td> <td>E</td> <td>F</td> </tr> </table>
Example. table with row span
| A and D | B | C |
| E | F |
Here is the source code:
<table border="1"> <tr> <td rowspan="2">A and D</td> <td>B</td> <td>C</td> </tr> <tr> <td>E</td> <td>F</td> </tr> </table>