What is wrong with my code, I keep getting this error - 'Your h2 element should degrade to the font monospace when Lobster is not available.'

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

  .red-text {
    color: red;

  h2 {
    font-family: Lobster , monospace;

  p {
    font-size: 16px;
    font-family: monospace;

<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="https://bit.ly/fcc-relaxing-cat" 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="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>


Hello and welcome.
There is an unnecessary space between Lobster and comma(,)
Just remove that and run the test again

1 Like

link to the challenge :https://www.freecodecamp.org/learn/responsive-web-design/basic-css/specify-how-fonts-should-degrade

thank you ErFy :smiley:

You’re welcome, next time if you need help in any challenge you can click on Get Help then click on Ask for help. It will create a new topic about the challenge and you can describe your problem so it will be easier to get help : )

1 Like