HTML Table

The HTML <table> element defines a Marquee.

Sub tag of Table

S No. Tag Name Description
1 Tr It is use for make a row
2 Th It is use for make col like a heading
3 Td It is use for make col (normal)
Example (Default)
S.No. Name Marks
1 Ram 78
2 Pop 85
3 Jack 75
<table>
	<tr>		<td>S.No.		<td>Name		<td>Marks</tr>
	<tr>		<td>1			<td>Ram			<td>78	</tr>
	<tr>		<td>2			<td>Pop			<td>85	</tr>
	<tr>		<td>3			<td>Jack		<td>75	</tr>
</table>

Attribute of Table

S.No. Att. Name Description Value
1 bgcolor For set whole table background color Any color name or code
2 Cellpadding For increase distance between cell and matter In Number
3 Cellspacing For increase distance between cells In Number
4 Border For give a border width In Number
5 Bordercolor For border color Any color name or code
6 Width For Width of Table In Number or Percentage
7 Height For Height of Table In Number or Percentage
Example(Border, Bordercolor, Width, Height)
S.No. Name Marks
1 Ram 78
2 Pop 85
3 Jack 75
<table border=5 bordercolor='red' width=200 height=200>
	<tr>		<td>S.No.		<td>Name		<td>Marks	</tr>
	<tr>		<td>1			<td>Ram			<td>78	</tr>
	<tr>		<td>2			<td>Pop			<td>85	</tr>
	<tr>		<td>3			<td>Jack		<td>75	</tr>
</table>

Example(Border, Bordercolor, width, Height, Cellpadding)
S.No. Name Marks
1 Ram 78
2 Pop 85
3 Jack 75
<table class='table_att' width=200 height=200 border=5 bordercolor='navy' bgcolor='#77FFDD' cellpadding=10>
	<tr>		<td>S.No.		<td>Name		<td>Marks	</tr>
	<tr>		<td>1			<td>Ram			<td>78	</tr>
	<tr>		<td>2			<td>Pop			<td>85	</tr>
	<tr>		<td>3			<td>Jack		<td>75	</tr>
</table>

Example(Border, Bordercolor, width, height, Cellspacing)
S.No. Name Marks
1 Ram 78
2 Pop 85
3 Jack 75
<table class='table_att1'  width=200 height=200  border=5 bordercolor='red' bgcolor='yellow' cellspacing=10>
	<tr>		<td>S.No.		<td>Name		<td>Marks	</tr>
	<tr>		<td>1			<td>Ram			<td>78	</tr>
	<tr>		<td>2			<td>Pop			<td>85	</tr>
	<tr>		<td>3			<td>Jack		<td>75	</tr>
</table>

Example(Border, Bordercolor, Width, Height, Cellpadding, Cellspacing)
S.No. Name Marks
1 Ram 78
2 Pop 85
3 Jack 75
<table border=5 bordercolor='red' width=200 height=200 bgcolor='yellow' cellpadding=10 cellspacing=10>
	<tr>		<td>S.No.		<td>Name		<td>Marks	</tr>
	<tr>		<td>1			<td>Ram			<td>78	</tr>
	<tr>		<td>2			<td>Pop			<td>85	</tr>
	<tr>		<td>3			<td>Jack		<td>75	</tr>
</table>