🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Forms and Semantic HTML: all 10 questions

Quiz: Forms and Semantic HTML · Question 9 of 10

What does pattern="[6-9][0-9]{9}" on a mobile number input check?

What does pattern="[6-9][0-9]{9}" on a mobile number input check?

  1. A.That the number has 6 to 9 digits
  2. B.That it starts with 6, 7, 8 or 9 and has 10 digits in total
  3. C.That the number is unique
  4. D.That the phone is switched on
Answer & explanation

Correct answer: That it starts with 6, 7, 8 or 9 and has 10 digits in total

One digit from 6–9 followed by nine more digits.

Can you get the rest right without peeking?

Take the timed Quiz: Forms and Semantic HTML quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →