KnowledgeBoat Logo

Computer Applications

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

HTML Advanced Features

3 Likes

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.

Answered By

2 Likes


Related Questions