HTML Table


The <table> tag of HTML is used for organizing user's data into rows and columns. It is basically used for displaying data in tabular format.

Example
Name Registration Number Programming course
Mikke 10005 Java
Danny 10004 Python
Kenny 10003 .Net
Victory 10002 PHP
Jimmz 10001 React

Here is the code of the above example table:



In the above example, we have styled the table using css properties within the <style> tag, inside <head> section.

The <tr> tag is table row. It defines a row inside the HTML table.

The <th> tag is table head. It is a container for heading data inside the HTML table.

The <td> tag is table data. It is a container for data within the table.