1. Home
  2. Computer Science MCQs
  3. HTML
  4. Which attribute makes input numeric-only?

Added 14 Sep 2025

Which attribute makes input numeric-only?

  1. pattern
  2. number Correct answer
  3. inputmode
  4. min

Correct answer

B. number

17 views

MCQSEXAM

Explanation

type="number" triggers numeric keypad.

Reference

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs