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**

.red-text {
  color: red;

p { 
font-size: 16px font-family: monospsce;}

<h2 class="red-text">CatPhotoApp</h2>
<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>

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

<form action="">
  <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>
  **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:


monospace has a small spelling error.

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

o código certo é o seguinte:


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.