Font size Im stuck


#1

I keep getting this error msg:

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! 

When I code this:
	

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

What am I doing wrong?


#2

This is what it should look like

visible


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


#3

Okay. I was missing the closing

tag. However it didnt change the font unless I put capital P. Have any idea why?

#4

No, @timothy87 solution is wrong. You should have one paragraph opening tag and one paragraph closing tag on each line, and you should add the style attribute to the paragraph opening, in this process do not create additional opening tags


#5

@stetim94 Can you show me what this looks like. I was able to move forward with @timothy87 solution but only if I used a capitol P in the closing tag.


#6

Yea, let's say you start with this:

<p>i am a paragraph</p>

you can add the style attribute to the opening paragraph tag:

<p style="color: red;">i am a paragraph</p>

As you see, style is an attribute you can add to a opening tag


#7

"I can see clearly now the rain is gone!!" I get it now. Thanks a million. :smile:


#8

keep in mind how attributes work, you will see many more attributes throughout this course. Good i could help you understand this


#9

Thanks. I will keep that in mind


#10

That's is how it worked for me I do not know why


#11

wait, now i am confused. I see once post where you didn't resolve the issue, and another where you do. Did you resolve the issue, and do you understand why?


#12

This is the code that worked for me


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


Then I came back to it and it did not work


#13

That code shouldn't have worked in the first place


#14

I know but it did and I do not know why


#15

SCT isn't airtight, it sometimes let faulty code pass.


#16

Oh ok so what do I do wrong


#17

this is the code you start with:

<p>Some text for you to make tiny!</p>
<p>Some text for you to make normal size!</p>
<p>Some text for you to make super big!</p>

now you can just add the style attribute to a paragraph opening tag:

<p style="">Some text for you to make tiny!</p>
<p>Some text for you to make normal size!</p>
<p>Some text for you to make super big!</p>

no need to create additional opening tags which do not have a matching closing tag, or html tags wich serve no purpose


#18

Like this with p tags

<head>
	<title>First font size change</title>
</head>
<body>

styel="font-size:10px">Some text for you to make tiny!
styel="font-size:20px">Some text for you to make normal size!
styel="font-size:40px">Some text for you to make super big!

</body>


#19

That depends, your code is not fully visible


#20

Like this olny with p tags





styel="font-size:10px">Some text for you to make tiny!
styel="font-size:20px">Some text for you to make normal size!
styel="font-size:40px">Some text for you to make super big!