Form - input element

What is the difference between

<input type="text" />


<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

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