Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<style>
h2 {color:blue;}
</style>
Please, can someone help me out here, please? I believe I got the code correct but when I submit it says that the color should be blue.
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
You’ve deleted the actual <h2> element you want to change blue from the code. Your <style> tag is correct. You just need to add the <h2> element back in. I’d click the “Reset All Code” button to get it back and then be sure to add the <style> tags above the existing <h2> without deleting it.
No, I mean we need you to copy/paste the most recent version of your code in here. Start by typing three backticks on a line by itself, then underneath those backticks copy/paste your code, then on a separate line after your code add three more backticks.
The backtick key on my keyboard is all the way in the upper left corner, just above the Tab key. Make sure you are doing three of those on a single line, then below that paste your code, and then on a separate line after your code another three bacticks.
I have removed the style attribute which is style=“color:blue”.
I changed the ‘red’ to ‘blue’.
I put the style block without deleting the h2 element. I did this by pressing ‘enter’ to create space on top and underneath to add the style block: and .
I have added the CSS elements that the course talked about.
What else am I doing wrong? Just point me in the right direction, please so that I can leave this stage.
I did and it was not correct. It’s still repeating that ‘your h2 element should be blue’ and ‘your stylesheet declaration should be valid with a semicolon and closing brace’.
You are much closer now. Your CSS is not defining which element you want to style. Look at the example in the instructions so see how they targeted the h2 element for styling.