# 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>
1
2
3
4
5
6
7
8
9
10
11
12

source (opens new window)