This code doesn't seem to work.... (it keeps saying my h2 element isn't using the font lobster) any help would be much appreciated

h2 {font-family:Lobster}p{font-size: 16px;font-family:monospace;}

Link to the challenge:

Did you do this step?

To import a Google Font, you can copy the font’s URL from the Google Fonts library and then paste it in your HTML. For this challenge, we’ll import the Lobster font. To do this, copy the following code snippet and paste it into the top of your code editor (before the opening style element):

<link href="" rel="stylesheet" type="text/css">

hey, yes I have, do you think there’s anything wrong with the code itself?

I’d have to see all the code - when I make that change, the code passes for me.

I really hope that you can see this, here’s the full code:

<link href="" rel="stylesheet" type="text/css"> 


h2 {font-family:Lobster}p{font-size: 16px;font-family:monospace;}



  <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

I think you didn’t put the semicolon after Lobster
font-family: Lobster;
like this

Again, you didn’t provide all the code, but I can see that the h2 is missing. There is no way this can pass. Reset the code and start again. When I reset the code, and that font link, and add that CSS line - it passes for me. And don’t change any other code.

Tried it and finally worked,must have deleted the h2 element at a point by accident,thanks for the help!

this didn’t work but thank you for the help,I’ve finally got it now though thankfully!

1 Like

Yeah, that happens sometimes while you’re working on things. The Reset button can be a life saver.