Why the size of the text does not change?

First font size change

Some text for you to make tiny!

Some text for you to make normal size!

Some text for you to make super big!

Hi,

When I press save and submit the answer is “way to go” and the color is green, but I still don’t see the actual font size on the (right)white winbdow changing? Is this code surely right?

Edit: I tried to put the code, but it is not shown in the post for some reason.

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:

select your code and press ctrl + k (or cmd + k if you use a mac)

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

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard

1 Like
<!DOCTYPE html>
<html>
    <head>
        <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> Some text for you to make normal size!</p>
        <p style= "font-size: 40px"> 
        <p> Some text for you to make super big!</p>
    </body>
</html>

Hopefully it is shown now.

Hi. You are adding 3 additional <p> that will default back to the standard size. Try this

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

@mariamariiia, b4x already gave the answer, but i would like to explain it as well. you start with this:

<p> Some text for you to make tiny!</p>

now, when using the style attribute, you can add it to a opening tag (in this case: <p>), in this process you do not need to create an additional opening tag. Remember we had an image? (<img>), we need to use the src attribute like so: <img src="#">. see? we added the attribute to the html opening tag, without creating additional opening tags

1 Like