← 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?
- A.That the number has 6 to 9 digits
- B.That it starts with 6, 7, 8 or 9 and has 10 digits in total
- C.That the number is unique
- 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 →