Table consists of rows and columns.
Table displays data in column on web page. Each row of the table is describe between <TR> and </TR>.
Table row can be of types:
<TH> is table header, defines the header of the columns of the table
<TD> is data cell, defines the data to be displayed in the cells.
The attributes of <TABLE> tag are:
|| Set HORIZONTAL alignments of the text and can have one of the following values: LEFT, RIGHT and CENTER
|| Set VERTICAL alignments of the text and can have one of the following values: TOP, MIDDLE or BOTTOM
|| Width of table (specified number of pixel/percentage of the screen width)
|| Thickness of the border
|| Distance between data and the boundaries of the cell.
|| Spacing between adjacent cells.
|| Used inside <TH> or <TD> tag to make the cell more than one column.
|| Used inside <TH> or <TD> tag to make the cell more than one row.
<TABLE border=1 width=50% >
<TR><TH>Student Name</TH><TH> Programme</TH></TR>
<TR><TD>Aakash</TD><TD>PGD in eLearning</TD></TR>
<TR><TD>Anju</TD><TD>PGD in eLearning</TD></TR>