Problem with css font family

Ive tried it on my own and watched the video, mine is the exact same but still says incorrect. What am i doing wrong?

  **Your code so far**

<style>
.red-text {
  color: red;
}

p { 
font-size: 16px font-family: monospsce;}
</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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Safari/537.36

Challenge: Set the Font Family of an Element

Link to the challenge:

Two small issues:


image

monospace has a small spelling error.

And, the 16px requires a semi-colon to close it. [ ie : 16px;]


o código certo é o seguinte:

Mod Edit: SOLUTION REDACTED

Repare que o seu código tem um erro de ortografia no monospace, e todo final de comando necessita
a terminação com ponto e vírgula ’ ; ’ .

(tire o tradutor) pq se não buga

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for pointing out those two errors I didn’t even notice it. I will in future post only the part I have an issue with instead of the entire code yes I get what you are saying thank you

1 Like

You’re Welcome.


Always Post the ENTIRE code, Sometimes errors can occur in the outlying areas of code as well.

Also, Many parts of the code, can affect other parts of the code, so it’s important to see it ALL.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.