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">.