1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <title>Untitled Document</title>6 <HTML>7 <Head>8 <styletype= "Text/css">9 A.one:link{Color:#ff0000}Ten One A.one:hover{Color:#F00;font-size:150%} A - A.two:link{Color:#ff0000} - a.two:visited{Color:#0000ff} the A.two:hover{font-size:150%} - - A.three:link{Color:#ff0000} - a.three:visited{Color:#0000ff} + A.three:hover{background:#66ff66;font-size:150%} - + A.four:link{Color:#ff0000} A a.four:visited{Color:#0000ff} at A.four:hover{font-family:monospace} - - A.five:link{Color:#ff0000;text-decoration:None} - a.five:visited{Color:#0000ff;text-decoration:None} - A.five:hover{text-decoration:Underline} - </style> in </Head> - to <Body> + <P>Please move the mouse over these links to see the effect:</P> - the <P><b><aclass= "One"href= "Http://www.baidu.com"Target= "_blank">This link changes color</a></b></P> * <P><b><aclass= "both"href= "Http://www.baidu.com"Target= "_blank">This link changes the font size</a></b></P> $ <P><b><aclass= "three"href= "Http://www.baidu.com"Target= "_blank">This link changes the background color</a></b></P>Panax Notoginseng <P><b><aclass= "Four"href= "Http://www.baidu.com"Target= "_blank">This link changes the font family</a></b></P> - <P><b><aclass= "Five"href= "Http://www.baidu.com"Target= "_blank">This link changes the text decoration</a></b></P> the </Body> + A </HTML>
HTML set hyperlink font color and click-After font color