8: Font Size (What is wrong with my code?)

<!DOCTYPE html>
		<title>First font size change</title>
		<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>

I don't know what is wrong with my code. The errors say that I am nesting the font size incorrectly but I don't know how! Help please!



The problem here is that you put an extra <p> tag before each of the <p style="font....> tags, though this is not needed. Removing these should work. Good luck!


You now have two <p> tags. Your line should look like this:
<p style="font-size:10px"> some text for you to make tiny! </p>


The correct answer is already given, but i would like to add that style is an attribute which you can add to many opening tags of html elements. No need to create extra tags in this process.


Thank you! This really helped me.


9 : Font size error

Error message Oops, try again.
It looks like your header's font-size is 32px instead of 16px.

my code:

A giant bear and a little duck were friends.


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 your code visible:

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:


the backtick is located above the tab key on your keyboard

!DOCTYPE html>

A giant bear and a little duck were friends.


!DOCTYPE html>

A giant bear and a little duck were friends.


are the format instructions so difficult?


A giant bear and a little duck were friends.


select your code and press ctrl + k, it is still no good


Thank you for your help but i found my mistake and it's all sort out :smile:


I'm glad you found your mistake and fixed the problem, but like @stetim94 said, your code was still not visible to us. So, for future reference, here is how to make code visible in posts.


I'm having a similar issue with font size. Could anyone help me figure out why I'm getting the error?


Please post this question in a new topic instead of using this one, thanks.


looks fine, try a different browser or copy your code to the forum so i can run it