CBSE Class 10 Computer Applications Question 22 of 48

HTML III — Audio, Video and Forms — Question 11

Back to all questions
11
Question

Question 11

A developer can restrict the values accepted in a text field by specifying a ............... attribute.

  1. size
  2. maxlength
  3. value
  4. You cannot restrict text values using HTML
Answer

maxlength

Reason — A developer can restrict the values accepted in a text field by specifying a maxlength attribute. It specifies the maximum number of characters a user can enter into the text box.