Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <script> $(document).ready(function(){ $("body :even").css("background-color","yellow"); }) </script> </head> <body> <div>Hướng dẫn học lập trình web 0</div> <p>Hướng dẫn học lập trình web 1</p> <p>Hướng dẫn học lập trình web 2</p> <p>Hướng dẫn học lập trình web 3</p> <div>Hướng dẫn học lập trình web 4</div> <div>Hướng dẫn học lập trình web 5</div> <p>Hướng dẫn học lập trình web 6</p> <div>Hướng dẫn học lập trình web 7</div> <p>Hướng dẫn học lập trình web 8</p> <p>Hướng dẫn học lập trình web 9</p> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <script> $(document).ready(function(){ $("body :even").css("background-color","yellow"); }) </script> </head> <body> <div>Hướng dẫn học lập trình web 0</div> <p>Hướng dẫn học lập trình web 1</p> <p>Hướng dẫn học lập trình web 2</p> <p>Hướng dẫn học lập trình web 3</p> <div>Hướng dẫn học lập trình web 4</div> <div>Hướng dẫn học lập trình web 5</div> <p>Hướng dẫn học lập trình web 6</p> <div>Hướng dẫn học lập trình web 7</div> <p>Hướng dẫn học lập trình web 8</p> <p>Hướng dẫn học lập trình web 9</p> </body> </html>