Class Applied to Multiple Elements

Example using the same class for multiple elements.

Preview

Code

<style>
.highlight {color:red;}
</style>

<p class="highlight">First highlighted text</p>
<p class="highlight">Second highlighted text</p>

More HTML Classes Examples (6)