Osita
September 2, 2022, 8:16pm
1
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**
<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="cat photo URL"></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">
<input type="text" placeholder="this is placeholder text"alt="cat photo URL".>
</main>
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Basic HTML and HTML5 - Add Placeholder Text to a Text Field
Link to the challenge:
ILM
September 2, 2022, 8:18pm
2
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
Osita
September 2, 2022, 8:23pm
3
I did it, but it still complains this
You should set the value of your placeholder attribute to cat photo URL
ILM
September 2, 2022, 8:26pm
5
I am pretty sure it’s set to this is placeholder text
ILM
September 2, 2022, 8:37pm
7
you didn’t set it to cat photo URL as requested, you set it to a different value
Osita
September 2, 2022, 8:39pm
8
please can you write how it will look like
Osita
September 2, 2022, 9:45pm
9
This is what I wrote
<input type="text" placeholder="cat photo URL">
hbar1st
September 3, 2022, 12:10am
10
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 (').
hbar1st
September 3, 2022, 12:16am
11
this looks correct now. Can you post the rest of the code in case there is another issue unrelated to this specific line?