HTML Basics 2, 10. Font family


#1


https://www.codecademy.com/courses/web-beginner-en-y2Yjd/1/4?curriculum_id=50579fb998b470000202dc8b#


I got the message "Oops, try again. It looks like your second

  • 's font-size is 16px instead of 12px." Please look over my code, is i can't seem to identify the mistake.


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


  • #2

    the property you need is font-size, the font shorthand won't work in this exercise


    #3

    Also, check your spelling of the Verdana typeface :slight_smile:


    #4

    This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.