Font Size and Text


#1

Hello-

I am having the error message: Oops, try again. It looks like your second

  • ’s font-size is 16px instead of 12px come up on my code.






    Big title




    1. This item is big Arial.

    2. This item is medium Verdana.

    3. This item is small Impact.




  • #2

    Your code is not visible. Click here to go to my guide on how to make it visible. Once you have done that, leave your code as a reply to me or mention @jibblyj so I get a notification. Thanks.


    #3
    <!DOCTYPE html>
    <html>
    	<head>
    		<title>Loving the font changes</title>
    	</head>
    	<body>
    		<h1 style="font-family: Arial">Big title</h1>
    		 <ol>
    		 	<li style="font size: 16px; font-family: Arial">This item is big Arial.</li>
    		 	<li style="font size: 12px; font-family: Verdana">This item is medium Verdana.</li>
    		 	<li style="font size: 10px; font-family: Impact">This item is small Impact.</li>
    		 </ol>
    	</body>
    </html>

    #4

    OK, the problem is that font size should be font-size - notice the hyphen (-) between 'font' and 'size'. Changing this should fix it, Good luck!


    #5

    Thank you! This worked!