So it says my form should have an attribute with is set to cat photo plz hel

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

   **Your code so far**

<form Action="submit-cat-photo">
<inputtype="text"placeholder="cat photo URL">
 <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>
<form action="submit-cat-phot"><input type="text" placeholder="cat photo URL">
   **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; DUB-LX1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Mobile Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

So it says my form should have an attribute with is set to cat photo plz hel

It doesn’t say that. It says:

Your form should have an action attribute which is set to .

Details matter.

I’m trying to understand. You were supposed to wrap the form around the existing input. But you also created a new one at the top:

<form Action="submit-cat-photo">
<inputtype="text"placeholder="cat photo URL">

That is broken and shouldn’t be there anyway. Remove that.

Let’s look at the form at the bottom:

<form action="submit-cat-phot">
  <input type="text" placeholder="cat photo URL">

When I fix the url to what we were told to use, the code passes for me. As a refresher, these were the instructions:

Nest the existing input element inside a form element and assign "" to the action attribute of the form element.

In case you ever need to give up your day job, I’m pretty sure Moonlighting as a Human Random Quotes Machine, Could possibly be your calling:

1 Like

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