For example, I can get the same results by the following two ways.
<html>
<head>
<style type="text/css">
p#red{color:red} /* This is a CSS id selector*/
p.green{color:green} /* This is a CSS class selector*/
</style>
</head>
<body>
<p id="red">red color</p>
<p class="green">greencolor </p>
</body>
</html>
They both can give me a colored text. But where is the difference between them? Thanks for your answer.