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


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>
    		<title>J'adore changer la police</title>
    		<h1 style="font-family: Arial">Gros titre</h1>
    		 	<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>

  • #2

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

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


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