.alert { /* Select the alert class */
    padding: 0.5em;
    background-color: gold;
}
.caution { /* Select the caution class */
    color: orangered;
}
<p class="alert">There is an alert message.</p>
<p>This is a paragraph element.</p>
<p class="alert caution">There is a caution message.</p>
<p>This is a paragraph element.</p>
Rendered Output
.class_name {
    /* ... */
}
[class~="class_name"] {
    /* ... */
}