Learn HTML by Building a Cat Photo App - Step 36

Tell us what’s happening:

I can’t seem to figure out what action attribute I’m missing, or not utilizing correctly. This is also my first time learning web development, so my knowledge is limited to what I’ve picked up from the course thus far. Any assistance or explanations on what I’m missing (the more in-depth, the better :slight_smile: ), would be greatly appreciated.

Message being received:

Your form element does not have an action attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names.

Your code so far

<section>
        <h2>Cat Form</h2>
        <form>
          <form action="/https://freecatphotoapp.com/submit-cat-photo">
        </form>
      </section>
      

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 15183.8.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 36

Link to the challenge:

I’ve edited your code 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 (').

hi there, welcome to the forum.

here is your code so far:

I see you have the original form element which was this one

<form>
</form>

and that you added a 2nd form element in the middle of this original element.

instead of doing that, do not add any elements, and just add the action attribute to the original form element given to you

4 Likes

Will do. Sorry about that, and thank you for the readability assistance.

I still haven’t quite managed to get it right, but is the following closer to being correct?

<form action="/https://freecatphotoapp.com/submit-cat-photo">
        </form>
1 Like

yes almost there. but you have a typo in your url (check it carefully)

1 Like

Found it. Thank you so much for your help!

1 Like

Just remove “/” before https.

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