Help with Use an h2 css selector to change the font

<style>
  .red-text {
    color: red;
  }
h2 {font-family:lobster}
  p {
    font-size: 16px;
    font-family: monospace;
  }
 
</style>

<h2 class="red-text"; font-family="lobster">CatPhotoApp</h2>
<main>
  <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
  Please tell me what missed here

This is incorrect. you cannot add ; font-family="lobster" to an h2 tag.

1 Like