Placeholder Text to a Text Field

Placeholder Text to a Text Field
0

#1

I am having a problem with the direction with this exercise…The direction is telling me to, "Set the value of your placeholder attribute to “cat photo URL” not sure where that is…

I do know this is what I need to put, but again not sure where that should go

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

For stuff that is part of the HTML tag, an attribute is the thing on the left of the = and the value assigned to it is on the right side of the =. For example, your a tag has a href attribute with the value of "#".


#3

Placeholder is an atribute of input element (it’s the grey text in a form field that suggests what should be typed there) so if you add placeholder=“the text about cats” in the opening input tag (before the > bracket) it’ll render