Programming Code Center(PCC)
[CSS]

(PCC)::[how-to-use-grouping-selector-element-in-html-using-css]::[css]

File Name : index.html

<!DOCTYPE html>
<html>
<head>
<style>
h1, h2, p {
  text-align: center;
  color: red;
}
</style>
</head>
<body>

<h1>Hello World!</h1>
<h2>Smaller heading!</h2>
<p>This is a paragraph.</p>

</body>
</html>

Output :

Hello World!

Smaller heading!

This is a paragraph.