<style>
.red-text {
color: red;
font-size: 16px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p class="red-text">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>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
</p>
Have you added the class “red-text” to the element?
I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>
) will also add backticks around text.
When asking for help, please let us know which problem you are working on so we know how to help you.
I assume you are working on “Change the Font Size of an Element”.
It has the instruction:
Inside the same tag that contains your red-text class, create an entry for p elements and set the font-size to 16 pixels (16px).
You’ve changed the font-size of the red-text class. You are supposed to create a new style definition below it, targeting the ‘p’ element.