Add place holder text to a text field

Tell us what’s happening:

Your code so far

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment<li>
  <li>other cats

<input type="text">

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

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1.

Challenge: Add Placeholder Text to a Text Field

Link to the challenge:

You need to set the placeholder attribute of the existing input element, as shown in the code snippet above. Most often, if you’re required to create a new HTML element, the challenge will explicitly tell you so.

1 Like