Need help in coding

Need help in coding
0.0 0

#1

Your h2 element should use the font Lobster.
Your p element should still use the font Monospace.

cant get these two to show up as correct need help what do i need to change?
I’ve put a copy down for you to see. thank you for your time.

<style>
 .red-text {
    color: red;
  }
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
  p {
    font-size: 16px;
    font-family: Monospace;
  }
</style>
<h2 font="lobster" </h2>
<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

#2

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#3

You did not tell us what the challenge name is for this particular code, so it is difficult to give you advice on what to fix.


#4

Hello!
I think that you have to create a class to get the Lobster font in h2.
You would have to write (somewhere in the “style section”):

h2 {font-family: Lobster;}

A.


#5

move this line to the beginning of your code.
the <link> tag should be out of the <Style> tag.

also as @amedee mentioned… remove this line from your code:
<h2 font="lobster" </h2>
and add this line within the <Style> tag:
h2 { font-family: Lobster;}