<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "UTF-8"> <title></title> <styletype= "Text/css"> </style> </Head> <Scriptsrc=".. /jquery-3.2.1/jquery-3.2.1.js "></Script> <Scripttype= "Text/javascript"> $(function(){ $("Tr:even"). CSS ("Background-color","#BAD0EF"); $("th"). CSS ("Background-color","#000000"); $("th"). CSS ("Color"," White"); $("Td:first"). CSS ("Background-color","Yellow"); $("Td:last"). CSS ("Background-color","Yellow"); }); </Script> <Body> <DivID= "AAA"> <Tablewidth= "500px"> <TR><th>Water</th><th>Price</th></TR> <TR><TD>Coffee</TD><TD>8.00</TD></TR> <TR><TD>Milk</TD><TD>5.00</TD></TR> <TR><TD>Soda</TD><TD>4.00</TD></TR> <TR><TD>Cola</TD><TD>3.00</TD></TR> <TR><TD>Tea</TD><TD>3.00</TD></TR> </Table> </Div> </Body></HTML>
The results of the operation are as follows:
07.30 "JQuery"--2.1 interlaced color _ simple Selector Practice