1.a:link{color:black. Control link Effect
2.a:visited{color:red;} controls the effect of the mouse point
3.a:hover{color:yellow: Controls the effect of mouse slide
4.a;active{color:black: The effect of control chain contact after
5.cursor:pointer; Mouse Change Hand type
6. Make the selected check box change text to red so that the input box automatically gets the text in the focus becomes red
Input:focus{color:red;}
input[type= "checkbox"]:checked+span{color:#f00;}
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "Utf-8">5 <title>Untitled Document</title>6 <style>7 Input:focus{Color:Red;}8 input[type= "checkbox"]:checked+span{Color:#f00;}9 </style>Ten </Head> One <Body> A <inputtype= "text"value= "1111"Autofocus><BR> - <inputtype= "text"value= "1111"><BR> - <inputtype= "text"value= "1111"><BR> the <H1>Please select a hobby</H1> - <label><inputtype= "checkbox"name= "love[]"value= "movement"><span>Movement</span></label><BR> - <label><inputtype= "checkbox"name= "love[]"value= "Swimming"><span>Swimming</span></label><BR> - <label><inputtype= "checkbox"name= "love[]"value= "singing"><span>Sing</span></label><BR> + </Body> - </HTML>
Control the link effect of a label + control input check box + Marquee text