<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
Replace this line with your code.
<do not remove the three backticks above>
I keep getting an error It says font is 15.972…when font should be 16
Changing the colors!
A giant bear and a little duck were friends.
But the bear got hungry and ate the duck.
<title>Changing the colors!</title>
<h1 style="color: green; font-size:16px"> 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>
Hi you should format your code
To format code so it’s visible, either wrap it in single backticks for a small amount of code, or triple backticks on an otherwise blank line before and after for a large amount of code.
Make sure your browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac should do this in most cases), otherwise look in your browser settings
Here is my code
<title>Putting it all together</title>
A truly spectacular paragraph!</p>
And it tell’s me “Oops your font-size is not set to 20px” I resized the browser window zoom,
by the way I’m using Firefox… it was working fine before… what gives?
It tells me font-size is undefined instead of 20px… i tried putting spaces
in between 20px and the : or rearranging the attributes to no avail…
a space between
px is a bad idea, your code works fine (the one you posted without markup). I guess your browser is sending cached data, try a different browser