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

CSS: An Overview Forum

View Course » View Exercise

203 points
519f71af921f60bb41004e1f_701259131
Submitted by
JustJoel
about 4 years ago

Why won't it accept my code, is the p tag in the right place?

h3 {
font-family: Courier;
color: Red;

p {
font-family: Courier;

}


3 votes

permalink

you haven't closed your h3 "}"

345 points
65fa13b387f5f4a072ba88bc2554f45b?s=140&d=retro
Submitted by
BoolieBoola
about 4 years ago

2 Comments

519f71af921f60bb41004e1f_701259131 JustJoel about 4 years ago

Thank you so much, such an obvious mistake but just didn't see it

Bdd7557c49976388efa376273420f18c?s=140&d=retro mich about 4 years ago

It would be better to write the curly braces "{ }" first, then fill in the property-value pairs. You won't forget to close the selector!


0 votes

permalink

Hello JustJoel, but from h3 remove font-family: Courier;, so your code will become
h3 {
     color: red;
   }

p {
    font-family: Courier ;
  }

  span {
         background-color: yellow;
       }

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
over 2 years ago