Can't find what's wrong

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

This is the font family exercise where you had to change the size of the list items.
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

It says the second list item is at a 16px instead of 12px; I can’t find the error in my code.


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


In this exercise you have to use two properties:

  • font-size to change size of the font
  • font-family to change family of the font

To use many properties in the inline css you have to use this syntax:

style="name-of-first-property: value; name-of-second-property: value; name-of-third-property: value (...)"

You can also use a shorthand property font:

style="font: 16px Arial;"

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