Basic CSS: Change the Color of Text problem

Cannot advance lesson.
Problem: Your h2 element should be red.

Don’t know what is wrong.

If you share your code, it’s easier to help. It looks like maybe you are missing a space in your “color: red”?

1 Like

Thanks I tries that first, exactly like in the left field.

I’m new here, not sure how post code tags.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


1 Like
<h2 style="color:red;">CatPhotoApp</h2>
	<p>Click here to view more
		<a href="#">cat photos</a>.</p>

	<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

		<p>Things cats love:</p>
			<li>cat nip</li>
			<li>laser pointers</li>
		<p>Top 3 things cats hate:</p>
			<li>flea treatment</li>
			<li>other cats</li>

	<form action="/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>

Do you have a dark mode extension? If it is so, switch it off for fcc, you can a ti ate the native dark mode from the settings


Yes, DarkReader.
Disabled it fixed problem.
I did search first, could not find solution.

Thank you for time and rapid answer,