<style>
red-text {
color:red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
1 Like
Is it an id or a class? And Try adding a space between color: and red.
.red-text {
color: red;
}
OR #red-text {
color: red;
}
1 Like
If red-text is a class, use .red-text instead.
I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.
@fmuscaro1 Class selectors start with a period “.
”
.red-text { ... }