Basic CSS code no. 3 sloution

**Tell us what’s happening: we have to see that space of that closing… element on the next line
this is the issue **
Describe your issue in detail here.

.red-text{ color:red; }

CatPhotoApp

  **Your code so far**


<style>
h2 {color: blue;}
</style>
<h2> CatPhotoApp </h2>
<main>
<p>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>

<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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

HI @santoshshk !

Welcome to the forum!

I added spoiler tags around your code since this is a working solution.

I am not sure I fully understand your comment.

Can you explain a little bit more?

<style>
  .red-text{
    color:red;
  }
</style>
<h2 class="red-text">CatPhotoApp   
</h2>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

you have to be carefull about that code which wriiten on that line
you have to check the line of code which comes whichs comes together like that i.e </h2> not like that </ h2>

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