Source:
<HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>CSS style Sheets</title><styletype= "Text/css">. PP{font-size:24px;Background-color:#999;Color:#F00;}</style><Linkhref= "Untitled-2.css"rel= "stylesheet"type= "Text/css" /></Head><Body><Pstyle= "font-size:18px">Inline style sheet</P> <Divclass= "pp">Inline style sheet</Div> <DivID= "PPP">External style sheet</Div><BR/><BR/><Divclass= "a"></Div><Divclass= "B">Tied</Div><Divclass= "a"><AA>Offspring</AA></Div><BR/>
<a href= "http://www.baidu.com/" target= "_blank" > Baidu </a>
</ Body >
</ HTML >
CSS style sheet:
@charset "Utf-8";/* CSS Document * /#ppp {font-size:24px; color: #F00; Background-color: #CF0;} . A,.B/* Parallel */ {width:400px; height:40px; border:1px solid black;} . A AA/* descendant * * {background-color:yellow; font-size:36px; text-decoration:underline; color:blue;} A:link {text-decoration:none; color:black;} a:visited {text-decoration:none; color:orange;} A:hover {text-decoration:underline; color:red;} A:active {text-decoration:underline; color:blue;}
Chapter 2. HTML---CSS style sheets