Essentials
Accenture PrimereasyEssentialsWeb Technologies

In the web page, we have a field called phoneno and inside this textbox field, the text : "Only numbers are allowed" must appear. This should get disappeared automatically once we type the phoneno into it. Which of the below options will suit the given scenario?

Answer options

A
<input type="text" placeholder="Only numbers are allowed">
B
<input type="tel" placeholder="Only numbers are allowed">

Correct answer: <input type="text" placeholder="Only numbers are allowed">, <input type="tel" placeholder="Only numbers are allowed">

Explanation

The correct answers are: <input type="text" placeholder="Only numbers are allowed">, <input type="tel" placeholder="Only numbers are allowed">.

Related Accenture Essentials questions

Practice more Accenture Essentials questions

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