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="www.website.com/pic.jpg" />
but i noticed that element doesn’t use a closing tag (for example </input>
) or even a self-closing (for example />
)
Example:
Could anybody help explaining why ??
Thanks for help!