Files

20 lines
589 B
Markdown

---
title: Style Multiple Elements with a CSS Class
---
## Style Multiple Elements with a CSS Class
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
We need to applying our ```red-text``` class to the first ```p``` element.
### Solution
In the opening tag of element ```p``` we need to add ```red-text``` class:
```css
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
```
### Useful links
- [Class selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Class_selectors)