Font size - "Oops, try again"


#1



https://www.codecademy.com/courses/web-beginner-en-y2Yjd/1/2?curriculum_id=50579fb998b470000202dc8b

Keep getting this error message;

"Oops, try again. Did you set the first paragraph's font-size to 10px? It looks like it's 16px. (If you're getting a weird decimal font size, check the Hint.)".

HELP! I want to be able to move forward and have tried editing the default font size of my browser but to no avail.

Below is my code...


<!DOCTYPE html>
<html>
	<head>
		<title>First font size change</title>
	</head>
	<body>
		<p style:"font-size 10px"> Some text for you to make tiny! </p>
		<p style:"font-size 20px"> Some text for you to make normal size!</p>
		<p style:"font-size 40px"> Some text for you to make super big!</p>
	</body>
</html>


#3

Your code seems to be correct. Try it in a different browser.


#4

after the style attribute there should be equal sign, not a colon, the colon should be after your font-size property


#5

Have tried in IE, chrome and firefox and get the same notification in each. Will keep trying to tinker with settings - thank you!


#6

or you could correct the syntax problems i suggested?


#7

Hi there - have tried with these amends as well with no luck. Still getting the same notification!


#8

please post an updated version of your code


#9

Sorry, I'm not thinking today. You do have a syntax issue.

<p style:"font-size 10px"> Some text for you to make tiny! </p>
		<p style:"font-size 20px"> Some text for you to make normal size!</p>
		<p style:"font-size 40px"> Some text for you to make super big!</p>

Say I am giving an h1 heading a font-size of 20px. You want the colon to be an equals sign instead, and the colon should be between the styling and the value of the styling. See example below.

<h1 style="font-size: 20px">

#10

Problem solved - THANK YOU! And stetim94 :slight_smile: