This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

34 points
53e90f35282ae3a04c000382_206070066
Submitted by
Shaina
over 3 years ago

17/21 Why won't it work???

    p}    
        font-size: 24px;
        input {
            border: 0;
        }
 </style>
 </body>

^^ here is the part that seems to not work


0 votes

permalink

There are a couple of things going on there that we should look at.

First:

p}    
        font-size: 24px;

CSS selectors, like the p you are working with here need to have a block of property: value pairs all enclosed in { }. That would look like this:

p {
    font-size: 24px;
}

Next is this part:

 </style>
 </body>

I see a closing </body> tag there which means that its matching opening tag, <body> would have come before it - yes?. That's how most HTML tags work ... an opening tag with some code and then a closing tag. The trouble here is that style elements are not located inside the body element so that needs a shift around.

3698 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago