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.
Also, just as an aside, <input /> is not a closing tag. It is equivalent to <input> without the /. The slash would have to be before the element name </input> for it to be a closing tag. As such, you have created twice as many input elements as what was asked for.
But again, as said, input is self-closing so it shouldn’t have a closing tag.