What is wrong with the p element font

*Tell us what’s happening:
The computer said that the p element should still use the monospace font, so what should i do?

  **Your code so far**

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

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

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

<div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
</div>

<form action="https://freecatphotoapp.com/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label><br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:98.0) Gecko/20100101 Firefox/98.0

Challenge: Import a Google Font

Link to the challenge:

Use a monospace font for the p-element :wink:
CSS rules have a hierarchy to resolve contradicting rules. Right now you assign two font-families to the p-tag and a class has a higher priority than the p-tag-rule.

Sorry,but i didn’t understand you.
The words are too biq for me.

Here’s a hint: red-text.

1 Like

Thank you alot. I made it.

1 Like

THE TUTORIAL ASKS US TO: Import the Lobster font to your web page. Then, use an element selector to set Lobster as the font-family for your h2 element.

DELETE LOBSTER FROM .red-text
Screenshot 2022-04-05 3.47.00 PM

CAPITALIZE: Lobster

Screenshot 2022-04-05 3.47.26 PM

PLACE THE SECOND FONT monospace BACK

Screenshot 2022-04-05 3.48.53 PM

1 Like