Style Multiple Elements

CSS can style multiple elements at once using a single rule.

Preview

Code

<style>
h1{
color:#dc2626;
}
p{
font-size:18px;
}
</style>

<h1>Styled Heading</h1>
<p>This paragraph uses CSS styling.</p>

More CSS How To Examples (5)