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

CSS: An Overview Forum

View Course » View Exercise

714 points
203e03856c30c3b9063a5c9c096595a7?s=140&d=retro
Submitted by
Kevin Pettifer
almost 5 years ago

I can't understand why I keep getting an Oops message

I have tried this exercise a few times, always with the following code;

h1 {
font-family : Times, serif;
}

h2 {
font-family : Verdana, sans-serif;
}

h3 {
font-family : Vivaldi, cursive;
}

I seem to be getting the appropriate results but always with this message;
Oops, try again.
Did you remember to put Times and a comma between font-family and serif?

As far as I can see, there is a comma between font-family and serif. Can anyone help with what I am missing?


3 votes

permalink

Capitalize the first letter of all your fonts.
My code is -

h1 {
font-family: Times, Serif;
}
h2 {
font-family: Verdana, Sans-Serif;
}
h3 {
font-family: Vivaldi, cursive;
}

128 points
Dfd46df57e5126f9aedad35d6d32ee75?s=140&d=retro
Submitted by
lark16550
almost 5 years ago

2 Comments

203e03856c30c3b9063a5c9c096595a7?s=140&d=retro Kevin Pettifer almost 5 years ago

Thanks, that's worked. Well, it didn't, but I noticed I have an extra line space between the end brackets and the headers. Would not have passed without your help and seeing your code so thanks.

5229d992f10c6095cd004150_747257615 Raahul Jaykar about 4 years ago

h1 {
font-family:serif;
}
h2 {
font-family:sans-serif;
}
h3 {
font-family:cursive;
}