Computer Science, asked by palvi843g, 10 months ago

In the web page we have a field called phoneno inside the textbox we
should have a value "Only numbers are allowed", once we type the phoneno it
should get disappered automatically.
Which of the below option will suit for the above scenario.
Select one or more
a <input type="text" value="Only numbers are allowed">
b. <input type="tel" default="Only numbers are allowed">
c <input type="tel" placeholder="Only numbers are allowed">
d. <input type="tel" value="Only numbers are allowed">
e <input type="text" placeholder="Only numbers are allowed">​

Answers

Answered by qwvilla
0

a. <input type="text" value="Only numbers are allowed">

d. <input type="tel" value="Only numbers are allowed">

In the above scenario, these are the two options which will suit where in the web page we have a field called phoneno inside the textbox we should have a value "Only numbers are allowed", once we type the phoneno it should get disappered automatically.

#SPJ3

Answered by ravilaccs
0

Answer:

The correct answer is option A,C,D,E

Explanation:

  • The placeholder attribute specifies a short hint that describes the expected value of an input field/text area.
  • The short hint is displayed in the field before the user enters a value.
  • If you want to set a hint for the text area or input field, then use the HTML placeholder attribute. The hint is the expected value, which gets displayed before the user enters a value, for example, name, details, etc.
Similar questions