????CSS?????????????????????????CSS ????????Σ??????????????CSS????????????????????????????????id???????html????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Ч????????????????????????
??????????????HTML???

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test2.html</title>
<meta http-equiv="keywords" content="keyword1??keyword2??keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/1.css" type="text/css"/>
</head>
<body>

??????????!

 

<span class="style1">?????</span>
<span class="style1">?????</span>
<span class="style1">??????</span>
<span class="style1">??????</span>
<span class="style1">??????</span><br/><br/><br/>
<span id="style2">??????????????????</span><br/><br/><br/>
<a href="#">???????</a><br/><br/><br/>
<a href="#">????????</a>
</body>
</html>

???????????css???????

 

/*???????*/
.style1{
font-weight: bold;
font-size: 20px;
background-color: pink;
}
/*id?????*/
#style2{
font-size: 30px;
background-color: silver;
}
/*html?????*/
body{
color: black;
}
a:link{
color: black;
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
a:visited{
color: red;
}

??????????????????????Ч?????