til

Style Multiple Elements With A CSS Class

<head>
    <style>
    .red-text {
        color: red;
    }
    </style>
</head>

<body>
    <h2 class="red-text">CatPhotoApp</h2>
    <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
</body>

source