HTML tables are set of rows and columns cells arranged in chronological order. HTML tables are used to organize list of items or data entries in tabular form.
The HTML tables starts with <table>, the <tr> tag is used to create table rows and <td> tag is used to create data cells.
Example
<!DOCTYPE html>
<html>
<head>
<title>Scholars Globe HTML Tables</title>
</head>
<body>
<table border="1">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
See Result Below:
Row 1, Column 1 | Row 1, Column 2 |
Row 2, Column 1 | Row 2, Column 2 |
No comments:
Post a comment