Monday 6 November 2017

Microsoft 70-480 Question Answer

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="txtVa!ue" type="integer" />
D. <input id="txtValue" type="text" required="required"/>

Answer: B


You are developing a customer web form that includes the following HTML.
<input id="txtValue"/>
You need to change the HTML markup so that customers can enter only a valid three-letter country code.
Which HTML should you use?


A. <input id="txtValue" type="code" />
B. <input id="txtValue" type="text" pattern=" [A-Za-z] {3}" />
C. <input id="txtValue" type="text" required="required"/>
D. <input id="txtValue" type="country" />

Answer: B

No comments:

Post a Comment

Note: only a member of this blog may post a comment.