Select even table elements?

Select even table elements?

Hello everyone: 
I am doing a exercise to select even table elements, then change the background color and font color of the elements.

To me the code should highlight the content in event number of <td> tag (e.g. Name and  Approx. Location)
Could someone explain to me why this happened and what change shall I make, so  the code will highlight the content  in the even number of the <td> tags

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  3. <html>
  4.  
  5. <head>
  6.   <title>hello world</title>
  7.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  8.   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" ></script>
  9.  <script language="JavaScript" type="text/javascript">
  10.   <!--
  11.   
  12.   $(document).ready(function(){
  13.     $('#celebs tr td:even').css('background-color', '#dddddd');
  14.     $('#celebs tr td:even').css('color', '#666');
  15.   });
  16.    
  17.  //-->
  18.  </script>
  19. </head>

  20. <body>
  21.   <table class="data" id="celebs">
  22.    
  23.      <tr>
  24.      <td>ID</td>
  25.      <td>NAME</td>
  26.      <td>OCCUPATION</td>
  27.      <td>Approx. Location</td>
  28.      <td>Price</td>
  29.      </tr>
  30.    </table>
  31. </body>
  32. </html>