Which HTML should you use?

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?

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?

A.
<input id=”txtValue” type-“text” pattern=”/#” />

B.
<input id=”txtValue” type=”number” />

C.
<input id=”txtValue” type=”integer” />

D.
<input id=”txtValue” type=”text” required=”required”/>



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Google

Google

We like to honor several other world-wide-web web-sites around the internet, even when they arent linked to us, by linking to them. Below are some webpages really worth checking out.