Basic HTML and HTML5 - Add Placeholder Text to a Text Field

Tell us what’s happening:
Describe your issue in detail here.
how to add cat photo URL to my placeholder attribute

  **Your code so far**
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="cat photo URL"></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="this is placeholder text"alt="cat photo URL".>

  **Your browser information:**

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

Challenge: Basic HTML and HTML5 - Add Placeholder Text to a Text Field

Link to the challenge:

if that’s the value you want to give to the placeholder attribute, it’s that value you need to put in the quotes in front of the placeholder attribute

I did it, but it still complains this
You should set the value of your placeholder attribute to cat photo URL

see what I did

I am pretty sure it’s set to this is placeholder text

This is what did

you didn’t set it to cat photo URL as requested, you set it to a different value

please can you write how it will look like

This is what I wrote
<input type="text" placeholder="cat photo URL">

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

this looks correct now. Can you post the rest of the code in case there is another issue unrelated to this specific line?

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