I can't solve this one

Hello, I just can’t solve the challenge of creating a form element.
Here’s the given task;

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.

  **Your code so far**
  And this is what I do:
form> <form action="https://www.freecatphotoapp.com/submit-cat-photo">

  </form>

html

<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>
placeholder="cat photo URL">
</main>
form> <form action="https://www.freecatphotoapp.com/submit-cat-photo">
</form>

  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

You’ve deleted the existing input element and you have a malformed starting form tag.
Reset the lesson following instructions carefully.

In the future,

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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 (’).

1 Like

I can’t solve it yet. I reset the codes and entered them again but it still not working at all. can I watch anyone solving it in youtube or

Let us see what your current code looks like. The previous post tells you how to add your code.

Yes I did it, it was difficult concept (nest), I have already submitted the task

1 Like

Good job on resolving the issue and passing the task.

Happy coding!

1 Like

Thank you I will carry on with other lessons then

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