English

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

Advertisements
Advertisements

Question

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

Options

  • size

  • maxlength

  • value

  • You cannot restrict text values using HTML

MCQ
Fill in the Blanks
Advertisements

Solution

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

Explanation:

By defining a maxlength attribute, a developer can limit the values that can be entered into a text field. It indicates how many characters the user may type into the text area.

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: HTML- III: Audio, Video and Forms - Assisted Practice [Page 229]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 11. | Page 229
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×