xxxxxxxxxx
<table>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>25</td>
</tr>
<tr>
<td>Jane</td>
<td>Smith</td>
<td>30</td>
</tr>
</table>
xxxxxxxxxx
<table style="border: thin solid coral">
<thead>
<td> your data row header column 1</td>
<td> your data row header column 2</td>
<td> your data row header column 3</td>
</thead>
<tr>
<td> your data row row 2 column 1</td>
<td> your data row row 2 column 2</td>
<td> your data row row 2 column 3</td>
</tr>
<tr>
<td> your data row row 3 column 1</td>
<td> your data row row 3 column 2</td>
<td> your data row row 3 column 3</td>
</tr>
</table>
xxxxxxxxxx
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
xxxxxxxxxx
<!Doctype html>
<html>
<body>
<table border="5">
<thead>
<tr>
<td>Sr No.</td>
<td>Name</td>
</tr>
</thead>
<tbody>
<tr>
<td>1.</td>
<td>2.</td>
</tr>
<tr>
<td>Python</td>
<td>HTML</td>
</tr>
</tbody>
</table>
</body>
</html>
xxxxxxxxxx
<!-- <th> means Table Header,
<tr> means Table Rows, and
<td> means Table Columns. -->
<table border="2">
<th></th>
<tr>
<td></td>
</tr>
</table>
<!-- You guys can add bgcolor="color" attributes, if you want to and so on... -->
<th bgcolor="orange">Orange</th>
<td bgcolor="red">Red</td>
<td bgcolor="yellow">Yellow</td>
<!-- To colspan cells use, colspan="value(1,2,3..)". -->
<tr>
<td>Green</td>
<td colspan="2">Blue</td>
</tr>
simple html table
xxxxxxxxxx
<table>
<!--table row-->
<tr>
<!--the header of the table-->
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
</tr>
<!--table row-->
<tr>
<!--the content of the table-->
<td>John</td>
<td>Smith</td>
<td>30</td>
</tr>
</table>
xxxxxxxxxx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
table{
border-collapse: collapse;
}
td{
border: 1px solid black;
padding: 0 10px;
}
</style>
</head>
<body>
<table>
<tr>
<td>No</td>
<td>Full Name</td>
<td>Position</td>
<td>Salary</td>
</tr>
<tr>
<td>1</td>
<td>Bill Gates</td>
<td>Founder Microsoft</td>
<td>$1000</td>
</tr>
<tr>
<td>2</td>
<td>Steve Jobs</td>
<td>Founder Apple</td>
<td>$1200</td>
</tr>
<tr>
<td>3</td>
<td>Larry Page</td>
<td>Founder Google</td>
<td>$1100</td>
</tr>
<tr>
<td>4</td>
<td>Mark Jukerbagh</td>
<td>Founder Facebook</td>
<td>$1500</td>
</tr>
</table>
</body>
</html>