Cant figure out please help

I have tried to figure it out for the past like hour with no avail, I’ve searched the forum and everything i was lead to dead ends, very frustrated. it told me to do this-

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

  **My code so far**


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

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

Challenge: Create a Form Element

Link to the challenge:

What is your full code? This seems to be just a little bit of it.


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.

Pre-formatted-text

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

At a glance, it looks like you may have not

assign "https://freecatphotoapp.com/submit-cat-photo" to the action

and you may have changed the original input element, but it’s hard to be sure with partial code.

<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="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" placeholder="cat photo URL" /> </form>

    

</main>

sorry took me awhile to figure it out

Ok, this form is missing a < and has the wrong action.

And right here you changed the original input when you shouldn’t have.

OK so the missing < was after i copied and pasted, and im not sure how to fix the rest of the code

Well, did you

assign "https://freecatphotoapp.com/submit-cat-photo" to the action attribute

wow that was… so easy to fix. Thank you for helping me, I’m kinda dumb

It’s those small things that trip us all up.

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