Codecademy Forums

Question about the <input> element

Hi Guys,

i noticed that the <input> element in the “HTML form” is little bit different than other elements. what i learned that the HTML elements either need a closing tag (for Example: <p> </p>) , or it’s a self-closing element (for example: <img src="" />

but i noticed that element doesn’t use a closing tag (for example </input>) or even a self-closing (for example />)

Could anybody help explaining why ??

Thanks for help!

self-closing tags like <img /> can be written like <img> in html5, /> is xml syntax.