Is it valid to replace elements with <element /> to <element></element>. In this case i want to have,
<input {attributes}></input>
just so i can append validation data within… Also could this be possible from a <br /> or <hr /> etc?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
<input>tag does not have a</input>and there is no need for one. Same for<br>and<hr>. You can put validation data as attributes on the input tag (or any tag) with custom attributes like this:If what you mean by validation is separate HTML that you want to display near the input tag, then put it in it’s own tags before or after the
<input>tag: