Can someone please explain this?

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

I don’t understand how this is supposed to work. I have gotten the form element part done but I don’t understand how to get the first 2 parts. Can someone please explain how to get the first 2 parts?

  **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://www.bit.ly/fcc-relaxing-cat" 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>
**<form action="/submit-cat-photo"><input type="text"></form>**
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15

Challenge: Create a Form Element

Link to the challenge:

  1. You were told to use the existing input element that was provided with the code. You either deleted or edited it.

Is not the same as "https://www.freecatphotoapp.com/submit-cat-photo"

I am still kinda confused.

:arrow_up: This is your input element.

  <input type="text" placeholder="cat photo URL">

:arrow_up: This is the existing input element.

They are not the same.

So would it be like this?
<form action="/submit-cat-photo"><input type="text" placeholder="cat photo URL"></form>

What do the instructions say that the value of the form’s action should be?

It says to “Nest the existing input element inside a form element and assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.”

What value did you assign to the action attribute of the form element?

I have the entire url as the action attribute of the form element.

Where?

I just put it in there.

I’m not done with it though.

If the tests are still failing, please share your current code and tell us what the failing tests say. It’s really hard to help from a screenshot, but it looks like you forgot the closing tag for your form element.

It worked. Thanks for your help. It was very much appreciated.

I’m glad I could help. Happy coding!

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