Syntax

Example

CSS

.classy {
background-color: skyblue;
}

HTML

<div class="classy">This div has a special class on it!</div>
<div class="foo classy bar">Elements can have multiple classes and the class selector still works!</div>
<div>This is just a regular div.</div>