Add Placeholder Text to a Text Field problem

Tell us what’s happening:
I don’t understand what I am doing wrong here, the test says “You should set the value of your placeholder attribute to “cat photo URL”.” and I have been doing that, but never letting me get pass the test. Will be glad to see what I have been doing wrong.

Your code so far


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

<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>
<input type="text">
</main>
<input type="text" placeholder="cat photo URL">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0.

Challenge: Add Placeholder Text to a Text Field

Link to the challenge:

Cut from your code;

<input type="text"> 
</main> 
<input type="text" placeholder="cat photo URL">

There was already input element, you didn’t need to create a new one.

1 Like

Oh my goodness, I thought the program meant to make a new input. I have passed the challenge thanks to your eagle eyes. :slight_smile: