<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
p.point{
color: red;
}
</style>
</head>
<body>
<h1>CSS .class Selector</h1>
<p>This is paragraph.</p>
<p class="point">This is paragraph with className 'point'.</p>
<div class="point">This is div with className 'point'.</div>
<p><strong>Note</strong>: In this example, css affect only p tag with className 'point'.</p> </body>
</html>