You are developing a customer web form that includes the following HTML input field.
<input id="txtValue"/>
If a customer enters a value in the input field, then it must be a numeric value.
You need to add validation to the input field.
Which HTML should you use?
Explanation Explanation: HTML5 Input Types: color date datetime datetime-local email month number range search tel time url week Reference: HTML Input Types http://www.w3schools.com/html/html5_form_input_types.asp
Question ID 14854
You are developing a customer web form that includes the following HTML.
<input id = "txtValue" />
A customer must enter a value in the text box prior to submitting the form.
You need to add validation to the text box control.
Which HTML should you use?
Explanation Explanation: Definition and Usage The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form. Example An HTML form with a required input field: Username: Reference: HTML required Attribute http://www.w3schools.com/tags/att_input_required.asp