+ 3

HTML input. Is there any difference between these two? ... > & />

Any major difference? <input type = "" > And <input type = "" /> Are there any benefits by using one of these or doesn't matter (same)?

7th Aug 2019, 5:19 AM
Ginfio
Ginfio - avatar
1 Resposta
+ 8
No difference, except in react.js, jsx all tag must have closing tag /. For good practice, i always set tag with closing /
7th Aug 2019, 5:28 AM
Calviղ
Calviղ - avatar