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">
Detailed Solution & Conceptual Analysis
This question has been retained as-is due to its unique context.
Key Engineering Takeaway
In Essentials, understanding the underlying mechanics of Essentials is critical for writing performant, bug-free production code and passing rigorous technical architecture reviews.