Yep, Font Problem

Hate to be that person, but I have yet to see the glaring problem with this code. I keep getting the error message: “Oops, try again. It looks like your header’s font-size is 32px instead of 16px.” Any help would be appreciated. Thank you!

Changing the colors!

Big Heading

A giant bear and a little duck were friends.

But the bear got hungry and ate the duck.

Could you post the code you have used for this?

Sorry about that! I don’t know how to post without it wanting it to formatting it. My header code opens with correct “<” followed by the “header or p” followed by “style=”.

“color:green; font-size 16px”> Big Heading
“color:violet”> A giant bear and a little duck were friends.


“color:red; font-size 10px”> But the bear got hungry and ate the duck.

-> How to insert code into a post <-


Paste your code, the first error you forgot a colon between font-size and value

(( Sorry for the grammar I use a translator ))

Thank you for helping me on that!

 <!DOCTYPE html>
    <html>
    	<head>
    		<title>Changing the colors!</title>
    	</head>
    	<body> 
    		<h1 style="color:green; font-size 16px"> Big Heading</h1>
    			<p style="color:violet"> A giant bear and a little duck were friends.</p>
    			<p style="color:red; font-size 10px"> But the bear got hungry and ate the duck.</p>
    	</body>
    </html>

There should be a colon: after each of the font-size: <-- like so

That fixed it- thank you so much everyone!

1 Like

You are welcome, the rest seems to me very correct !