Need Help in Font Size


#1

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

Can anyone help me? When I Save & Submit the code, it says, "Oops, try again. Slow down there, Speed Racer--it looks like your p tags are nested funny, like this: p p style='...'> /p or p p style='...'> /p. Check the Hint if you need help!" I looked at my code, and I still do not understand what's wrong with it. Can someone help me?

Also, I removed the tags so that the message can be displayed.

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

I specified 10px but its displaying that its seems to be 16px
#2

HI you don't need of the <p> before, it should be like that

<p style="font-size:20px"> Some text for you to make normal size! </p>

#3

Oh, okay. I didn't know that. :stuck_out_tongue:
Thanks!


#4

a better explanation would be, that style is an attribute you can add to many opening tags, without creating an additonal opening tag in the process, so if you have a paragraph:

<p>i am a paragraph</p>

you can just add the style attribute to the opening tag (in this case paragraph opening tag):

<p style="">i am a paragraph</p>