Web Technology
Accenture PrimereasyWeb TechnologyHtml

If the phone number should accept only 10 digit numbers, which of the following options will suit?

Answer options

A
True
B
False

Correct answer: True

Explanation

To accept only 10-digit phone numbers, use HTML5 input type='tel' with pattern='[0-9]{10}' or implement JavaScript regex validation using /^[0-9]{10}$/.test(value).

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.