Can't Pass Basic CSS: Import a Google Font

Can't Pass Basic CSS: Import a Google Font
0

#1

Hi all,

I can’t get past this challenge.

I’ve added ‘h2 {font-family: Lobster}’ in my style block (below) and can see that the font has changed to Lobster but it still keeps saying ‘Use an h2 CSS selector to change the font’ and challenge remains incomplete. Screenshot attached. Help much appreciated!


#2

Try adding a semicolon after Lobster


#3

It worked! Thank you.

Is this a freecodecamp glitch? Or just a generic coding error?


#4

Semicolons aren’t really required for the last property inside the brackets (https://stackoverflow.com/q/2406717), so technically it’s an fcc glitch. But IMO it’s a good habit to add semicolons after each property anyway.


#5

ok cool. Thanks for your help.