9. font-color


#1

Hey!
I'm stuck on lesson 9. font-color and i can't figure out why.
here is the code:

        <!DOCTYPE html>
<html>
    <head>
        <title>Changing the colors!</title>
    </head>
    <body>
        <h2 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>

#2

What does the error message say? Please read this post about markdown so your code/indent will show.


#3

it says "Oops, try again.
Did you remember to make the first paragraph violet?"


#4

your h2 opening tag should be h1, h2 was just to test if you understood that you can add the style attribute to a opening tag


#5

it worked :smiley:
Thanks for the help


#7

Please read this post about markdown so your code/indent will show.

After a property (font-size) there should be a colon not a equal sign


#8

@megajumper02194, i already answered your question here. Rather then spamming another topic, create your own if you still have a question, and take in account the markup required, see link in my answer


#9

Hi people,
Please notice that sometimes it doesn't work since the zoom is not correct,
to solve it just press ctrl+0 on your keyboard. it worked for me.