Error Message Keeps popping up:Oops, try again. It looks like your second <li>'s font-size is 16px instead of 12px


#1







Big title



  1. This item is big Arial.

  2. This item is medium Verdana.

  3. This item is small Impact.



What is wrong


#2

if you edit/update your question, leave a reply so i get a notification. Your code is not visible, take the following steps to make it visible:


#3

Have you separated your values with a semi-colon? Usually when I get problems with my coding, it is because I have missed out some punctuation whether it is a semi-colon or a bracket etc. Also, you may have missed a quotation mark at the end, I am constantly doing this.

Hope this helps :smile:


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

I get the same. My code look like the one above except i've got !DOCTYPE html html in the beginning, for some reason it will not show my code unless I erease these two...


#5

after font-size there should be a colon, just like you did with font-family


#6

Thanks so much I just get blind staring at it:-)


#7

Hi Stetim94,

Thank you for that.
Here is the code. I am not sure where the error is.

<!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-size: 16px">This item is big Arial.</li>
		 	<li stlye="font-size: 12px; font-family: Verdana">This item is medium Verdana.</li>
		 	<li style="font-family: Impact; font-size: 10px">This item is small Impact.</li>
		 </ol>
	</body>
</html>

#8

second list item, you misspelled style


#9
    I have had the same issue but can't find a solution here or anywhere else!

<!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_size: 16px">This item is big Arial.</li>
    		 	<li style= "font-family:Verdana; font_size: 12px">This item is medium Verdana.</li>
    		 	<li style= "font-family:Impact; font_size: 10px">This item is small Impact.</li>
    		 </ol>
    	</body>
    </html>

#10

font-size is with a dash/hyphen (-) not a lowerbar (_)