Tell us what’s happening:
I am having problems using CSS selectors to style element. DONE according to HINT but code not running.
Your code so far
<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>
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (X11; CrOS x86_64 9901.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.97 Safari/537.36
.
Link to the challenge:
https://www.freecodecamp.org/challenges/use-css-selectors-to-style-elements
What does the failing test say?
I just clicked on RUN TESTS and it refuse to run… what can i do? please check my code again.
What do you mean it “refuses to run”? Are there red s next to test descriptions?
There is no X sign anywhere. naturally, it should give me a pass mark and take me to the next challenge. it is not doing so.
There are either green checkmarks or red s next to all the tests.
okay, there is a big X next to the test. it says ''your h2 element should be blue"
You don’t have an h2
element in the code you shared above. You have a style
element and a p
element.
so, should i create a h2 element?
There will be nothing to turn blue if you don’t have a h2
element.
There should already have been one, but it looks like it was deleted. You can either reset the challenge and start fresh, or recreate the h2
element.
I have reset the challenge. i have got the answer now. i have seen my mistake. thank you Ariel Leslie. till later again.