Basic html and html5 form action help

Basic html and html5 form action help
0

#1

Hello everyone, so im new (third day) and ive already hit a wall , can anyone steer me in the right direction?

    <input type="text" ><form action = "submit-cat-photos"/>
  </form>
</main>

this is for the challenge to create a form element, however, im doing somthing wrong, ive spent over an hour trying to figure it out...

#2

Can’t help much if you don’t post your code and a link to the challenge.


#3

i did, I copied and pasted it


#4

DId you put your code in backticks? Your code is clearly not showing up.


#5

#6

you do it like this:
```
Your code
```

Backticks is the key to the left of the 1 key.


#7
 <form>
    <input type="text" ><form action = "submit-cat-photos"/>
  </form>
</main>

#8

You only need one pair for form tags.


#9

the opening and closing i need right?


#10

Also, link the challenge in the original post too. Helps.
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-form-element/

Instructions say to:

Nesting something means to put something inside. You know from the example in the instructions and from previous challenges of how to make an element.


#11

whenever i run the test, it keep telling me to make sure the formhas an action attribute which
is set to “submit-cat-photo”


#12

Before your worry about that, you should inspect your code carefully and ask yourself if you’ve made a form element correctly. Right now, you have an extra form tag lying around.


#13

I have been looking at the form element over and ove,r whenever i have removed anything dealing with the word form it tells me its isnt nested properly or it doesnt have proper opening and closing tags


#14

What do you have now?


#15

the only issue that comes up when i run the test is the one i mentioned before


#16

Let me point out that you have 2 tags that have <form> and only 1 closing </form>, based on the code snippet you gave me.

Figure out which form tag element pair you want.


#17
    <input type="text"><form action ="submit-cat-photos"/>
  </form>
there are three things  im being tested on two of them is nesting the input text and opening and closing a form tag , the challenge is telling me im good with those.. the thing im not passing is the form action attribute setting

#18

i feel like im going in a circle , thanks for your help.


#19

I might be contributing to that, but you need to make sure that your syntax is correct first.

The code snippet you gave me was not good. So I needed you to fix that first. Remember that most html elements have a start and an end. You showed me 2 starts and 1 end.

Figuring out which start and end you want, you need to make sure your input element is nested/inside of the element.


#20
  </form>