Can't find what's wrong


This is the font family exercise where you had to change the size of the list items.

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>
		 	<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>


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.