Help to find out how to put a placeholder attribute

Tell us what’s happening:
Describe your issue in detail here.

  **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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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 placeholder<tag attribute Name="cat photo URL">
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; Infinix X650) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.50 Mobile Safari/537.36

Challenge: Add Placeholder Text to a Text Field

Link to the challenge:

Hi @Lily2,

You have few issues in your input.

Your code:

<input type=text placeholder<tag attribute Name="cat photo URL">
  1. You deleted the quotation marks for your type attribute
  2. <tag attribute Name="cat photo URL">, this doesn’t exist except the name attribute

I suggest you to watch the example code gave by the course and to apply this syntax to the existing input.

Course example:

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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.