Freecodecamp: "Your h2 element should be blue." why? =[

Created on 9 May 2017  路  11Comments  路  Source: freeCodeCamp/freeCodeCamp

Challenge Use CSS Selectors to Style Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

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

<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>

Most helpful comment

Had an issue with this, solved it by disabling any userstyle extensions (Stylus, Stylish, or any "dark mode" extensions). Turns out your userstyle affects how freecode evaluates your excercise. Hope it helps!

All 11 comments

Thanks for reporting this issue @Randytran0411 .

I fear that you have misinterpreted the instructions:

Delete your h2 element's style attribute

means that if this was your original code:

<h2 style="color: red">CatPhotoApp</h2>

Get rid of the style=".." portion and/or change it according to the lesson's requirements.

Next time you have difficulties please don't hesitate to ask for assistance in one of the official chat


To help you clear the concept; with your code:

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

<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>

You're asking the browser to make the h2 blue .... but there's no h2 in your page to be colored.
The style only set an element's appearances properties, but you still need to have them declared in your body section.

@Randytran0411
Thank you for reporting this issue.

This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "Help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.

If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding.

I am having precisely the same problem. I followed your instructions to the letter (I already had before even coming here) and the error still reads, "Your h2 element should be blue."

When I click on "help," I am sent to gitter where I attempt to sign in with github. When I click on the "sign in with github tab, nothing happens.

@SuperAdamee You can also find help on the forum.

I have the same problem

Remember you have to edit the h2 first...

CatPhotoApp

This edited line will remain in your code.

The next step is to add the style block at the top of your code.
the style block will point to your h2

I am having precisely the same problem. I followed your instructions to the letter (I already had before even coming here) and the error still reads, "Your h2 element should be blue."

When I click on "help," I am sent to gitter where I attempt to sign in with github. When I click on the "sign in with github tab, nothing happens.

Did you close the <style> tag?

Yes...

I have mentioned the written code below but still no progress.
Please help what should I do ?

CatPhotoApp

Click here to view more cat photos.

Had an issue with this, solved it by disabling any userstyle extensions (Stylus, Stylish, or any "dark mode" extensions). Turns out your userstyle affects how freecode evaluates your excercise. Hope it helps!

Had an issue with this, solved it by disabling any userstyle extensions (Stylus, Stylish, or any "dark mode" extensions). Turns out your userstyle affects how freecode evaluates your excercise. Hope it helps!

Thank you very much, the first result in google wasn't helpful. But your advise solved the problem immediately

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjanusauskas picture mjanusauskas  路  61Comments

ryanarnouk picture ryanarnouk  路  39Comments

QuincyLarson picture QuincyLarson  路  39Comments

johnkennedy9147 picture johnkennedy9147  路  43Comments

sadathanwar17 picture sadathanwar17  路  66Comments