Skip to content
MCQs · Q4

Q.Which HTML5 input attribute prevents a form from being submitted until the field has been filled in?
(A) pattern
(B) placeholder
(C) required
(D) readonly

Maharashtra MsbshseTextbookSubjectiveImportance★★★★★est
33% · 4/12 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

HTML5 can validate simple things using attributes on an input.

(A) pattern checks the entry against a rule (a regular expression) but does not, by itself, force the field to be filled — incorrect.

(B) placeholder only shows hint text inside an empty box; it is a guide, not validation — incorrect. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.