HTML <table> tag is used to create a table on web page. Below is an explanation of the most commonly used elements within the <table> tag:
<table border="1"> SakalaCode <table>
<!DOCTYPE html> <html> <head> <title>HTML Table with Example</title> </head> <body> <h2>SakalaCode Sample HTML Table</h2> <table border="1"> <tr> <th>Header 1</th> <th>Header 2</th> <th>Header 3</th> </tr> <tr> <td>Row 1, Cell 1</td> <td>Row 1, Cell 2</td> <td>Row 1, Cell 3</td> </tr> <tr> <td>Row 2, Cell 1</td> <td>Row 2, Cell 2</td> <td>Row 2, Cell 3</td> </tr> </table> </body> </html>