Cannot proceed on basic CSS course

Hi all,

I am almost positive my code is correct, but I am getting an error from the freecodecamp website still. I am working on use CSS class to style an element

Here’s my code:

<style>
  .red-text {
    color: red;
  }
</style>

<h2 class='red-text'>CatPhotoApp</h2>

Here’s what I’m getting from the tests:

I’ve tried double quotes for the h2 class and that didn’t fix it either. Really confused, is it my fault or a problem with the freecodecamp website? The next course doesn’t seem to be working either… Also, on the website preview in the right panel, the h2 text appears red.

It could be a problem with your browser or extensions. Try to remove your extensions or to change your browser. Your markup seems okay.

You can also try reseting the test and trying again.

Hey, you were totally right about browser extensions. My dark mode reader was messing up the test, presumably because it changes font colors. Thank you for the help, my submission worked!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.