<!DOCTYPE html> 
<html> 
<head>
 <style> 
 
 table,th,td { border:2px solid red; } 
 
 table { border-collapse:collapse; width:20%; }
 td { height:40px; }
 tr { background-color:green; color:black; }
 th { background-color:yellow; color:black; } 
 
 
	 tr:nth-child(odd){ 
		background: #C2E0FF;
	}
	
	tr:nth-child(even){
		background: #FFFFFF;
	}
	
	tr:hover td{
    background-color:red;
}
 </style> 
 </head> 
 <body> 
 <table> 
 <tr> 
 <th>Roll No</th> <th>Name</th> 
 <th>Team</th> 
 </tr> 
 
 <tr> <td>1001</td> <td>John</td> <td>Red</td> </tr> 
 <tr> <td>1002</td> <td>Peter</td> <td>Blue</td> </tr>
 <tr> <td>1003</td> <td>Henry</td> <td>Green</td> </tr> 
 <tr> <td>1001</td> <td>John</td> <td>Red</td> </tr> 
 <tr> <td>1002</td> <td>Peter</td> <td>Blue</td> </tr>
 <tr> <td>1003</td> <td>Henry</td> <td>Green</td> </tr> 
 
 </table> 
 </body> 
 </html> 
 