But my h2 element IS blue!

I’m enjoying the Responsive Web Design Certification course, but I’m stuck on something simple and I don’t know what I’m doing wrong. In “Basic CSS”, the second lesson, “Change the Color of Text”, I am unable to move past because third criteria, “Your h2 element should be blue” is not met. Even though I have the following entered above the h2 element:

<style>
  h2 {color: blue;}
</style>


What can I do to fix this and move to the next lesson?

Welcome to the community! Be sure to link the challenge URL as well when asking questions about specific challenges: https://www.freecodecamp.org/learn/responsive-web-design/basic-css/use-css-selectors-to-style-elements

My thought is this: if you try the test again without having dark mode enabled on your browser, will the test pass?

1 Like

Maybe you can try reset the code. Then it might run properly.

Thank you for the advice. When I ran the test with dark mode disabled it worked. Thank you so much for your help!