Help me with "Add Placeholder Text to a Text Field"

Help me with "Add Placeholder Text to a Text Field"
0.0 0

#1

Tell us what’s happening:
I cannot understand what is it I must do

Your code so far


<h2>CatPhotoApp</h2>
<main>
  <p>Click here to view more <a><input type="text" placeholder="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>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 7.0; SM-G925F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-placeholder-text-to-a-text-field


#2

The instructions are:

Set the placeholder value of your text input to “cat photo URL”.

There is an example of using the placeholder attribute with the text “this is placeholder text”. You just have to add a placeholder with the text specified in the instructions to the only input element in the code (near the bottom).


#3

placeholder attribute is used in the input tag not in p tag.

Just type placeholder=“cat photo URL” in input tag