Can somebody pls explain on what I got wrong here.
<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="cat photo URL">
</main>
Challenge: Add Placeholder Text to a Text Field
Link to the challenge:
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 (’).
iamaxi
October 20, 2021, 2:53pm
3
you need to put the placeholder attribute inside the <input>
Thanks a lot @iamaxi . I just fixed it and it worked.
1 Like
iamaxi
October 20, 2021, 3:00pm
5
Np mate
Keep up the grinding!
1 Like
system
Closed
April 21, 2022, 3:01am
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.