Confused, can someone help me?

Tell us what’s happening:
Im stuck at this code and I believe that I’m doing it correct
I’m adding a placeholder text with the following:

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

But I keep getting an error, what am I doing wrong?

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36.

Challenge: Add Placeholder Text to a Text Field

Link to the challenge:

Good evening, @krogers and welcome to the community :slight_smile:

I will give you two clues on what could be fixed.

  1. Your answer is correct, it is where the correct answer is placed that is not correct

  2. It has asked to set the answer on the existing <input> element, wherein your case, you have created a new one.

I hope this helps. Good luck!

1 Like

wow, Thank you Madalena, I just learned two things.

  1. placeholder code
  2. That I need to pay more attention
1 Like

Hey @krogers

I like to think you have solved it?

If anything, we all have been there (and will go down there again!), but as strange it may sound, making these kinds of mistakes at this stage of the process can be the best thing if you actually learn from it and make a mental note of it. That way, as learning becomes more challenging, your problem-solving skill get easier. :slight_smile:

Again, good luck with your journey of learning and as we say, happy coding! :v:

Ahhh, Yes. I have solved it and am now learning how to create buttons that speak to the servers to submit info. I will treat this process as if I’m learning how to play an instrument. Repetition, Repetition, Repetition, etc :slight_smile:
Im pretty excited…I really am looking forward to growing as a coder

1 Like