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


#1



Replace this line with your code.


#2

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

please include error and lesson


#3
<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.

  • #4

    I just paste in the my code.Take a look and let me know the mistake am I making.


    #5

    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>

    #6

    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>

    #7

    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.


    #8

    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>

    #9

    Thankyou so much for all the help from you guys.


    #10

    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.


    #12

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


    #13

    "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!");


    #14

    error msg rec'd is "SyntaxError: Syntax error"