HTML Tables

HTML Tables

An HTML table is defined with the <table> tag.
The HTML table can have the following elements:
The <table> tag defines the HTML table.
The <tr> tag is used to define a table row.
The <th> tag is used to define a table heading or title.
The <td> tag is used to define a cell in a table.
The <caption> tag defines the table caption.
The <colgroup> tag defines a group of columns in a table.
The <col> tag defines a column in a table.
The <tbody> tag defines the body content in a table.
The <thead> tag defines the head content in a table.
The <tfooter> tag defines the footer content in a table.

HTML Tables

<!DOCTYPE html>
<html>
	<head>
		HTML Tables
	</head>
<body>
	
ID Title Price
1 HMTL course 10
2 CSS course 20
3 PHP course 30
</body> </html>

Result:



HTML Tables

ID Title Price
1 HMTL course 10
2 CSS course 20
3 PHP course 30