What error am I making in the below code?Some one please help

<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>

Please paste in your code so we can have a look and help you…

please include error and lesson

<li> style="font-size: 16Px;"font-family: Arial."</li>
         <li> style="font-size: 12Px;"font-family:Verdana.</li>
         <li> style="font-size: 10Px ;"font-family: Impact.</li>

Getting error like this.Oops, try again.
It looks like your second

  • 's font-size is 16px instead of 12px.
  • I just paste in the my code.Take a look and let me know the mistake am I making.

    1 Like

    Going to jump in here quickly :wink:

    
    <li> style= " " you've already cut the styling off the li by closing it
    
    <li style = "float: none; color: blue;"> blahblah </li>
    

    what @benjnev said
    also px should be in lowercase …


    just to confirm:

    This is how you add style to a code:

    Take the original tag: <p> </p>
    add in style=" " before >
    (You don’t add the tag in again)

    Example:

    <p style="color: blue; font-size:39px"> my paragraph text </p>
    

    This is the original code

    <li>This item is big Arial.</li>
    <li>This item is medium Verdana.</li>
    <li>This item is small Impact.</li> 
    

    And asking me to add style and font size.

    read this:

    This is how you add style to a code:

    Take the original tag

    eg the paragraph tag: <p> </p>
    add in style=" " before >
    (You don’t add the tag in again)

    Example:

    <p style="color: blue; font-size:39px"> my paragraph text </p>
    

    Thankyou so much for all the help from you guys.

    1 Like

    Another error in my code:
    Below is the code

    <!DOCTYPE html>
    <html>
        <head>
            <title>Sexy background color!</title>
        </head>
        <body>
        <p style="background-color: brown; Background-color set by using brown">FAVorite </p>
    
            <h3>Favorite Football Teams</h3>
                <ol>
                <p style="background-color: yellow;">Hello!</p>
    
                    <li>The Hawthorn Football Club</li>    
                    <li>San Franscisco 49ers</li>
                    <li>Barcelona FC</li>
                </ol>            
        </body>
    </html>
    

    Error:
    Make sure you set the body’s background-color to brown.

    <p style="background-color: brown;">FAVorite </p>
    

    this part is correct ^

    Background-color set by using brown
    

    ^this is a sentence so it shouldn’t be in style

    What error are you getting ?

    “Jon”.length * 2 / (2+1) === 0)
    {
    console.log(“The answer makes sense!”);
    }
    else
    {
    console.log(“Error Error Error”);
    }
    if (“Jon”.length 200/10 ==== 20)
    {
    console.log(“The answer makes sense!”);
    }
    else
    {
    console.log(“Error Error Error!”);
    }
    if (“Jon”.length + 4 == 8)
    {
    console.log(“The answer makes sense!”);
    }
    else
    {
    console.log(“Error Error Error!”);
    }
    if (“Jon”.length 4*(1+4)=== 20)
    {
    console.log(“The answer makes sense!”);
    }
    else
    {
    console.log(“Error Error Error!”);

    error msg rec’d is “SyntaxError: Syntax error”