Add Placeholder Text to a Text Field i need help 2018

Add Placeholder Text to a Text Field i need help 2018
0.0 0

#1

Tell us what’s happening:
i dont no how to
Add a placeholder attribute to the existing text input element. or
Set the value of your placeholder attribute to “cat photo URL”.

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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 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

In the challenge instructions, it gives you an example (seen below) of how to create a placeholder for an input element.

<input type="text" placeholder="this is placeholder text">

The challenge code already gives you the input element (seen below). You just have to add a placeholder value with different text (“cat photo URL”).

<input type="text">