[SOLVED] Merge element, tag and attribute. Beginner question

Hello,

I am learning HTML and have troubles merging a element with a tag.

I have a input tag type=“text” and have to nest a form element inside.
The task: “Nest your text field inside a form element, and add the action=”/submit-cat-photo" attribute to the form element."
If I understand the task correctly I have to combine this two together:

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

If I try to do it, it loos like this:

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

Like you see I cant really combine elements and attributes. I can work with paragraph and anchor in one line though.
I don’t know if I can share the link, but this is the task:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-form-element

Thank you very much.

Thank you for improving readability of my text. And thank you for explaining me the concept of nesting.