Form - input element

Hello,
What is the difference between

<input type="text" />

and

<input type="text" >

both are implementing same functionality, which one to use?

Both are correct as far as I know
You can type in Google this:

why slash at the end of self-closing element

there will be bunch of discussions, I personally can’t recommend the best one of them