Font-Family


#1

<!DOCTYPE html>
<html>
	<head>
		<title>Loving the font changes</title>
	</head>
	<body>
	<h1>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>

This is my code. I have kept comments in the both ends to avoid this code converting into webpage content.

I am getting "Oops, try again. It looks like your second

  • 's font-size is 16px instead of 12px.". Can someone please help?

  • #2

    This looks like a syntax problem, 16px is the default font-size. Please post (aka copy paste) your code to the forum


    #3

    Chances are you're separating the px from your number. <p style=" font-size: 16px"/> We won't know until you paste your code though.


    #4

    after a property (font-size, font-family) there should be a colon, not a equal sign