The correction says my font size is wong, while it seems to be right


#1


https://www.codecademy.com/fr/courses/web-beginner-fr-FR-7o65k/1/4?curriculum_id=5355c3c3516bcbd91200000b
https://www.codecademy.com/fr/courses/web-beginner-fr-FR-7o65k/1/5?curriculum_id=5355c3c3516bcbd91200000b


In HTML II and later, there are some exercises I can't validate because the exercise don't recognize my font's size. I tried on firefox, in a PC, and on Opera, in a mac, both with the zoom at 100%. Both in Firefox and Opera, if I change font's size in the preference of the browser, it changes the error message. If I select 16 px in the browser, the correction says that the second

  • is 16 instead of 12. If I select 12 px, it says that the first
  • is 12 instead of 16. If I select 15, it says it's 15 instead of... I haven't got any option to cut off this option or select "none" in the browser's preferences... Sorry for my bad english!


    Replace this line with your code. 
    
    <!DOCTYPE html>
    <html>
    	<head>
    		<title>J'adore changer la police</title>
    	</head>
    	<body>
    		<h1 style="font-family: Arial">Gros titre</h1>
    		 <ol>
    		 	<li style="font-family:Arial; size:16px;">Ce texte en gros est en Arial.</li>
    		 	<li style="font-family:Verdana; size:12px;">Ce texte en moyen est en Verdana.</li>
    		 	<li style:"font-family:Impact; size:10px;">Ce texte en petit est en Impact.</li>		 </ol>
    	</body>
    </html>


  • #2

    the property you look for is font-size, not just size.

    Also, after style there should be a equal sign, not a colon


    #3

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