In CSS, selectors are patterns used to select the element you want to style.
Example :
Select and style all <p> elements:
<!DOCTYPE html>
<html>
<head>
<title>About Element Selector</title>
<style type="text/css">
p {
text-align: center;
color: red;
border: dashed;
}
</style>
</head>
<body>
<P>First Paragraph</P>
<p>Second Paragraph</p>
</body>
</html>
Show Output :